ox_global_vars: Global variables in a list

Description Usage Arguments Value Examples

Description

Returns a list with study global variables from a parsed OpenClinica odm1.3 .xml export file.

Usage

1
ox_global_vars(parsed_xml)

Arguments

parsed_xml

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

Value

A list.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
# 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)

# Global variables in a list
global_vars <- ox_global_vars(doc)
class(global_vars)
global_vars

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