Description Usage Arguments Value Examples
View source: R/ct_read_trial.R
Returns the commonly used information from ClinicalTrials.gov.
1 | ct_read_trial(NCT, export_format = "csv")
|
NCT |
The NCT code of a study as a character, e.g. "NCT03478891". |
export_format |
The format of the output as a string. Either "csv" or "xml". |
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", export_format = "xml")
# Extract fields of interest
study <- ct_read_trial("NCT03478891", export_format = "csv")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.