View source: R/ReformatLoops.R
prop_or_na | R Documentation |
For a particular gender control item, e.g. "female_adult male_adult" this function works out whether to return NA or a proportion. In this case the proportion controlled by each person would be 0.5
prop_or_na(item)
item |
A list of the people controlling a particular resource |
Rpackage file: ReformatLoops.R
item <- c("male_adult", "female_adult")
prop_or_na(item) # should return 0.5
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.