ox_group_repeat: Group repetitions in a dataframe

Description Usage Arguments Value Examples

Description

Returns a dataframe with study item group repetitions from a parsed OpenClinica odm1.3 .xml export file.

Usage

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

# Group repetitions in a dataframe
group_repeats <- ox_group_repeat(doc)
head(group_repeats)

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