ctgov_query {ctrialsgov} | R Documentation |
Query the ClinicalTrials.gov dataset
Description
This function selects a subset of the clinical trials data by using a
a variety of different search parameters. These include free text search
keywords, range queries for the continuous variables, and exact matches for
categorical fields. The function ctgov_query_terms
shows the
categorical levels for the latter. The function will either take the entire
dataset loaded into the package environment or a previously queried input.
Usage
ctgov_query(
data = NULL,
description_kw = NULL,
sponsor_kw = NULL,
brief_title_kw = NULL,
official_title_kw = NULL,
criteria_kw = NULL,
intervention_kw = NULL,
intervention_desc_kw = NULL,
outcome_kw = NULL,
outcome_desc_kw = NULL,
conditions_kw = NULL,
population_kw = NULL,
date_range = NULL,
enrollment_range = NULL,
minimum_age_range = NULL,
maximum_age_range = NULL,
study_type = NULL,
allocation = NULL,
intervention_model = NULL,
observational_model = NULL,
primary_purpose = NULL,
time_perspective = NULL,
masking_description = NULL,
sampling_method = NULL,
phase = NULL,
gender = NULL,
sponsor_type = NULL,
ignore_case = TRUE,
match_all = FALSE
)
Arguments
data |
a dataset to search over; set to |
description_kw |
character vector of keywords to search in the
intervention description field. Set to
|
sponsor_kw |
character vector of keywords to search in the
sponsor (the company that submitted the study).
Set to |
brief_title_kw |
character vector of keywords to search in the
brief title field. Set to
|
official_title_kw |
character vector of keywords to search in the
official title field. Set to
|
criteria_kw |
character vector of keywords to search in the
criteria field. Set to
|
intervention_kw |
character vector of keywords to search in the
intervention names field. Set to
|
intervention_desc_kw |
character vector of keywords to search in the
intervention description field. Set to
|
outcome_kw |
character vector of keywords to search in the
outcome measures field. Set to
|
outcome_desc_kw |
character vector of keywords to search in the
outcome description field. Set to
|
conditions_kw |
character vector of keywords to search in the
conditions field. Set to
|
population_kw |
character vector of keywords to search in the
population field. Set to
|
date_range |
string of length two formatted as "YYYY-MM-DD"
describing the earliest and latest data to
include in the results. Use a missing value
for either value search all dates. Set to
|
enrollment_range |
numeric of length two describing the smallest
and largest enrollment sizes to
include in the results. Use a missing value
for either value to avoid filtering. Set to
|
minimum_age_range |
numeric of length two describing the smallest
and largest minmum age (in years) to
include in the results. Use a missing value
for either value to avoid filtering. Set to
|
maximum_age_range |
numeric of length two describing the smallest
and largest maximum age (in years) to
include in the results. Use a missing value
for either value to avoid filtering. Set to
|
study_type |
character vector of study types to include
in the output. Set to |
allocation |
character vector of allocations to include
in the output. Set to |
intervention_model |
character vector of interventions to include
in the output. Set to |
observational_model |
character vector of observations to include
in the output. Set to |
primary_purpose |
character vector of primary purposes to
include in the output. Set to |
time_perspective |
character vector of time perspectives to
include in the output. Set to |
masking_description |
character vector of maskings to include
in the output. Set to |
sampling_method |
character vector of sampling methods to
include in the output. Set to |
phase |
character vector of phases to include
in the output. Set to |
gender |
character vector of genders to include
in the output. Set to |
sponsor_type |
character vector of sponsor types to include
in the output. Set to |
ignore_case |
logical. Should the search ignore
capitalization. The default is |
match_all |
logical. Should the results required matching
all the keywords? The default is |
Value
a tibble object queried from the loaded database
Author(s)
Taylor B. Arnold, taylor.arnold@acm.org