Skip to content

Commit

Permalink
disease hierarchy function update
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriellemackinnon committed Apr 19, 2024
1 parent df2a01a commit cd985bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/iidda/R/data_prep_tools.R
Expand Up @@ -727,7 +727,8 @@ flatten_disease_hierarchy = function(data
# if there is only the basal disease (no sub-diseases), differentiate by adding '-only'
# mutate(disease = ifelse(disease == basal_disease, sprintf("%s-only", disease), disease))
|> mutate(nesting_disease = basal_disease)
|> select(-basal_disease)
|> select(-basal_disease, -x, -y, -z)

)
}

Expand Down

0 comments on commit cd985bc

Please sign in to comment.