remapDEs: Function which converts data element codes, names or...

Description Usage Arguments Value Note

View source: R/remapDEs.R

Description

remapDes should be supplied a vector of data elements (names,codes or shortnames) along with the other required paramaters. It will return a vector of identifiers of a different class.

Usage

1
remapDEs(des_in, mode_in = "code", mode_out = "id")

Arguments

des_in

A vector of data element identifiers (codes, names or shortNames)

mode_in

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

mode_out

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

Value

Returns a vector of DATIM uids for each data element which needs to be remapped.

Note

remapDes(foo,"https://www.datim.org","admin","district","code") will remap data elements specified as codes to UIDs


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