ox_subjects: Subject data in a dataframe

Description Usage Arguments Value Examples

Description

Returns a dataframe with study subjects data from a parsed OpenClinica odm1.3 .xml export file.

Usage

1
ox_subjects(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)

# Subject data in a dataframe
subjects <- ox_subjects(doc)
head(subjects)

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