proportion_control_per_person: Number Controlling Resource

View source: R/ReformatLoops.R

proportion_control_per_personR Documentation

Number Controlling Resource

Description

For the RHoMIS gender columns, we ask who in the household collects each resource. This function is designed to be applied to each item (spicific row for specific column)

Usage

proportion_control_per_person(item)

Arguments

item

The specific string, for which we want to count the number controlling the resource

Details

Rpackage file: ReformatLoops.R

Value

A proportion (0-1) for the people controlling resource

Examples


column <- c("male_adult female_adult", "male_adult", NA, "female_youth")
proportion_control_per_person(column)


l-gorman/rhomis-R-package documentation built on Nov. 8, 2023, 6:46 a.m.