transform_data_type: Transform Data Type

Description Usage Arguments Value

View source: R/extract_xml.R

Description

Data stored in the XML are inherently character strings. This function transforms the raw data into the correct type, according to the ICNARC data specification.

Usage

1
transform_data_type(input_data, input_name, lookup)

Arguments

input_data

vector of data to be transformed

input_name

name for vector to be found in lookup

lookup

a lookup table with conversion functions

Value

a vector of the datatype specified in lookup


CC-HIC/icnarc2omop documentation built on March 4, 2020, 11:11 a.m.