pickUIDFromType: Title pickUIDFromType is a utility function used to obtain a...

View source: R/unPackYear2Sheet.R

pickUIDFromTypeR Documentation

Title pickUIDFromType is a utility function used to obtain a particular UID from a supplied list based on the type of value we are dealing with. In the Year2 tab, values disaggregated by AgeSex, KP and EID are co-mingled and must be separated based on available disaggregates.

Description

Title pickUIDFromType is a utility function used to obtain a particular UID from a supplied list based on the type of value we are dealing with. In the Year2 tab, values disaggregated by AgeSex, KP and EID are co-mingled and must be separated based on available disaggregates.

Usage

pickUIDFromType(type, de_uid_list)

Arguments

type

Disaggregate type (e.g. AgeSex, KP, EID)

de_uid_list

A list of possible UIDs (e.g. c("UID1","KPUID2" )

Value

A UID based on the supplied type. Returns NA if no UID is matched.


pepfar-datim/datapackr documentation built on April 14, 2024, 10:35 p.m.