View source: R/extract_publications.R
extract_publications | R Documentation |
clinicaltrials_gov_download()
and returns a new data frame
containing one row per publication of the publication type
specified indexed on ClinicalTrials.gov for every version of the
clinical trial record provided.This function does not connect to ClinicalTrials.gov, and only
interprets data that has already been downloaded by expanding the
nested JSON-encoded data in the references
column provided by
clinicaltrial_gov_version
.
extract_publications(df, types = c("RESULT", "BACKGROUND", "DERIVED"))
df |
A data frame containing at least the following columns:
|
types |
A list of types to be returned or a character string if only one type specified, e.g. "RESULT" or c("RESULT", "BACKGROUND"). Allowed types: "RESULT", "BACKGROUND", "DERIVED". |
A data frame with all the original columns, as well as an
additional three columns: pmid
, type
and citation
. The
new data frame will have one row per publication.
hv <- clinicaltrials_gov_download("NCT00942747", latest=TRUE)
extract_publications(hv)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.