Description Usage Arguments Value Examples
View source: R/helpers_for_main_dashboard.R
Removes individuals who have none of the requested codes
1 | subset_to_codes(data, desired_codes, codes_to_invert = c())
|
data |
A wide phenotype file with columns IID, snp, and all the normalized phecode names |
desired_codes |
Character vector of the phecodes to be extracted |
codes_to_invert |
Character vector of phecodes that the user has requested be inverted (e.g. not having the code is considered 'having' it.) |
A wide dataframe with just the columns desired and only rows corresponding to cases with one or more of the desired codes.
1 | subset_to_codes(myPhenotypes, c('001.00', '002.00'), codes_to_invert = c('001.00'))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.