Description Usage Arguments Value Examples
View source: R/ct_read_trial_from_xml.R
Returns the commonly used information from ClinicalTrials.gov.
1 | ct_read_trial_from_xml(xml_doc)
|
xml_doc |
A trial from ClinincalTrials.gov as an xml_document. |
If the selected format is "csv", a dataframe with the commonly used fields; if a field was not found within the file, then this field will be empty, i.e. 'character()'. If the selected format is "xml", then it returns the trial in xml_document format.
1 2 3 4 5 6 7 | ## Not run:
# Get the XML of study NCT03478891
xml_document <- ct_read_trial("NCT03478891", format = "xml")
# Extract fields of interest
study <- ct_read_trial_from_xml(xml_document)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.