ox_units: Measurement units in a dataframe

Description Usage Arguments Value Examples

Description

Returns a dataframe with measurement units from a parsed OpenClinica odm1.3 .xml export file.

Usage

1
ox_units(parsed_xml)

Arguments

parsed_xml

An object of class XMLInternalDocument, as returned by XML::xmlParse().

Value

A dataframe.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
# The example odm1.3 xml file address
my_file <- system.file("extdata",
                       "odm1.3_full_example.xml",
                       package = "ox",
                       mustWork = TRUE)

# Parsing the xml file
library(XML)
doc <- xmlParse(my_file)

# Measurement units in a dataframe
measurement_units <- ox_units(doc)
head(measurement_units)

acobos/ox documentation built on May 13, 2019, 12:17 p.m.