insert_gender_columns_in_core_data: Insert Gender Columns in Core Data

View source: R/ReformatLoops.R

insert_gender_columns_in_core_dataR Documentation

Insert Gender Columns in Core Data

Description

Splitting a particular column in the RHoMIS data by the genders groups which control that resource

Usage

insert_gender_columns_in_core_data(
  data,
  original_column,
  control_column,
  loop_structure = F,
  gender_control_categories = pkg.env$gender_categories
)

Arguments

data

The original data set containing the numeric data and the gender control column used to split it

original_column

The original numeric column which needs to be split by gender

control_column

The column indicating the groups which are controlling a resource. Must include the values "male_adult","female_adult" etc...

loop_structure

Indicating whether or not the controlled resource is located within a loop structure. So far all gender control columns are located within this looping structure

gender_control_categories

The gender control categories included in the survey.

Details

Rpackage file: ReformatLoops.R


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