Skip to content

Commit

Permalink
Fixing #300
Browse files Browse the repository at this point in the history
Syntax error in code was causing an issue in the rule sequencing, leading to incorrect attrition values. thanks to @chrisknoll for all the help
  • Loading branch information
nhall6 committed Aug 28, 2024
1 parent 49d9486 commit a3a6e76
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/cohort-generator-main.R
Original file line number Diff line number Diff line change
Expand Up @@ -919,7 +919,7 @@ getCohortGenerationAttritionTable <- function(
cohortRules <- rules %>%
dplyr::filter(.data$cohortDefinitionId==cohortId) %>%
dplyr::select("ruleSequence", "ruleName", "cohortName") %>%
dplyr::arrange("ruleSequence")
dplyr::arrange(ruleSequence)

testMask = 0

Expand Down Expand Up @@ -959,6 +959,7 @@ getCohortGenerationAttritionTable <- function(
}

attritionTableDistinct <- dplyr::distinct(attritionTable)


#adding drop counts
attritionTableFinal <- attritionTableDistinct %>%
Expand Down

0 comments on commit a3a6e76

Please sign in to comment.