Learn R Programming

rclinicaltrials (version 1.4.7)

parse_study_xml: Parses study information for a trial downloaded from clinicaltrials.gov

Description

Results of a clinical study are stored in a particular way. This reads and organizes the from a trial xml file (stored in a temporary directory) and returns it as a list of dataframes. Optionally includes long textblock fields and results fields stored as separate data frames.

Usage

parse_study_xml(file, include_textblocks = FALSE, include_results = FALSE)

Arguments

file
Path to xml file
include_textblocks
Logical, include long textblock fields in the results
include_results
Logical, include results data, if available

Value

A list of data.frames, study information, locations, interventions, arms, outcomes, results, and textblocks. Results and textblock frames will be NULL if not requested.