remapOUs: Function which converts mechanism codes, names or shortnames...

Description Usage Arguments Value Note

View source: R/remapOUs.R

Description

remapOUs should be supplied a vector of organisation Units (names,codes or shortnames) along with the other required paramaters. It will return a vector of to another class of identifiers.

Usage

1
remapOUs(ous_in, organisationUnit, mode_in = "code", mode_out = "id")

Arguments

ous_in

A vector of organisation unit identifiers (codes, names or shortNames)

organisationUnit

UID of the Operating Unit/Country

mode_in

Should be one of code, name, shortName or id. This is the class we are mapping from.

mode_out

Should be on of code,name,shortName or id. This is the class we are mapping to.

Value

Returns a vector of organisation unit UIDs

Note

remapOUs(foo,"https://www.datim.org","admin","district","code","id","Ab12345678") will remap organisation units specified as codes to UIDs


gandiwan/datim-validation documentation built on Dec. 20, 2021, 9:47 a.m.