make_proportions: Make proportions

Description Usage Arguments Value

View source: R/FIRST_LGA_PROFILE_FUNCTIONS.R

Description

Calculate proportions with or without "dont know"

Usage

1
2
make_proportions(data, agg_var, indicator_index,
  dontknow_action = "exlude", dontknow_format)

Arguments

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

Value

a dataframe in wide format with the aggregated categories in the dataframe for each aggregation unit


misizsembes/NGA_LGA_Profiling documentation built on July 14, 2019, 7:40 p.m.