Description Usage Arguments Value
View source: R/FIRST_LGA_PROFILE_FUNCTIONS.R
Calculate proportions with or without "dont know"
1 2 | make_proportions(data, agg_var, indicator_index,
dontknow_action = "exlude", dontknow_format)
|
data |
dataframe |
agg_var |
Name of the geographic aggregation unit(e.g., lga) |
indicator_index |
Column INDEX of the first column to be aggregated |
dontknow_action |
a string, either "exclude" if "dont know" should be excluded OR "included" if "dont know" should included |
dontknow_format |
IN QUOTATIONS: How "dont know" is spelled in the data |
a dataframe in wide format with the aggregated categories in the dataframe for each aggregation unit
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.