View source: R/ReformatLoops.R
check_val_in_list | R Documentation |
In the case of the gender calculations, this function can check whether a particular gender category is found in a string.
check_val_in_list(item, category)
item |
A list of gender control strings (see example) |
category |
The category you are trying to identify |
Rpackage file: ReformatLoops.R
item <- c("male_adult female_adult", "male_adult", NA, "female_youth")
category <- "female_youth"
check_val_in_list(item, category)
item <- c("male_adult female_adult", "male_adult", NA, "female_youth")
category <- "male_adult"
check_val_in_list(item, category)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.