ctgov_query_design: Query design data from the ClinicalTrials.gov dataset

View source: R/query.R

ctgov_query_designR Documentation

Query design data from 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_get_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_design(
  data = NULL,
  design_kw = NULL,
  design_desc_kw = NULL,
  ignore_case = TRUE,
  match_all = FALSE,
  max_rows = NULL
)

Arguments

data

a dataset to search over; set to NULL to use the full dataset that is currently loaded

design_kw

character vector of keywords to search in the outcome measures field. Set to NULL to avoid searching this field.

design_desc_kw

character vector of keywords to search in the outcome description field. Set to NULL to avoid searching this field.

ignore_case

logical. Should the search ignore capitalization. The default is TRUE.

match_all

logical. Should the results required matching all the keywords? The default is FALSE.

max_rows

integer. The maximum number of rows to return; The default NULL returns all rows.

Value

a tibble object queried from the loaded database

Author(s)

Taylor B. Arnold, taylor.arnold@acm.org


presagia-analytics/ctrialsgov documentation built on March 25, 2024, 2:10 p.m.