Skip to content

Commit

Permalink
filter cohort if existing population
Browse files Browse the repository at this point in the history
  • Loading branch information
Admin_EFridgei authored and Admin_EFridgei committed Dec 20, 2023
1 parent 6357763 commit 8f8ccb8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions R/PopulationSettings.R
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,9 @@ createStudyPopulation <- function(

if (is.null(population)) {
population <- plpData$cohorts
} else {
population <- plpData$cohorts %>%
dplyr::filter(.data$rowId %in% (population %>% dplyr::pull(.data$rowId)))
}

# save the metadata (should have the ?targetId, outcomeId, plpDataSettings and population settings)
Expand Down

0 comments on commit 8f8ccb8

Please sign in to comment.