This function retrieves clinical trial data in bulk from the ClinicalTrials.gov API based on specified parameters. It handles pagination and returns a combined dataset.
ctg_bulk_fetch(
condition = NULL,
location = NULL,
title = NULL,
intervention = NULL,
status = NULL
)A data frame containing the fetched clinical trial data.
Character string specifying the condition to search for.
Character string specifying the location to search in.
Character string specifying the title to search for.
Character string specifying the intervention to search for.
A character vector specifying the recruitment status of the trials. Allowed values are: Valid values include:
ACTIVE_NOT_RECRUITING - Studies that are actively conducting but not
recruiting participants.
COMPLETED - Studies that have completed all phases.
ENROLLING_BY_INVITATION - Studies that are enrolling participants
by invitation only.
NOT_YET_RECRUITING - Studies that have not yet started recruiting.
RECRUITING - Studies that are actively recruiting participants.
SUSPENDED - Studies that are temporarily halted.
TERMINATED - Studies that have been terminated before completion.
WITHDRAWN - Studies that have been withdrawn before enrollment.
AVAILABLE - Studies that are available.
NO_LONGER_AVAILABLE - Studies that are no longer available.
TEMPORARILY_NOT_AVAILABLE - Studies that are temporarily not available.
APPROVED_FOR_MARKETING - Studies that have been approved for marketing.
WITHHELD - Studies that have data withheld.
UNKNOWN - Studies with an unknown status.
if (FALSE) {
trials <- ctg_bulk_fetch(location="india")
}
Run the code above in your browser using DataLab