ctgov_query_endpoint: Query endpoint table from the ClinicalTrials.gov dataset

View source: R/query.R

ctgov_query_endpointR Documentation

Query endpoint table 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_endpoint(
  data = 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

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.