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

Description Usage Arguments Value Note

View source: R/remapMechs.R

Description

remapMechs should be supplied a vector of data mechanisms (names,codes or shortnames) along with the other required paramaters. It will return a vector of UIDs.

Usage

1
remapMechs(mechs_in, organisationUnit, mode_in = "code", mode_out = "id")

Arguments

mechs_in

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

organisationUnit

The UID of the operating unit.

mode_in

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

mode_out

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

Value

Returns a vector of mechanism UIDs

Note

remapMechs(foo,"https://www.datim.org","admin","district","code","Ab12345678") will remap mechanisms specified as codes to UIDs


jason-p-pickering/datim-validation documentation built on Nov. 8, 2018, 3:30 p.m.