extract_outcome: Extract Outcomes

View source: R/extract_outcomes.R

extract_outcomeR Documentation

Extract Outcomes

Description

Function to extract the primary and secondary outcomes.

Usage

extract_outcome(trial_path, primary_outcome = TRUE, secondary_outcome = TRUE)

Arguments

trial_path

An absolute or relative path to the XML file

primary_outcome

Logical. If TRUE the primary outcome is extracted.

secondary_outcome

Logical. If TRUE the secondary outcome is extracted.

Value

Returns a tidy dataframe with the basic trial metadata (a trial's NCT number, trial status, phase and title) with the primary and/or secondary outcome.


Dennis-Valentine/TidyTrials documentation built on March 23, 2022, 7:43 p.m.