Learn R Programming

rclinicaltrials (version 1.4.7)

clinicaltrials_count: Count number of results for a given search

Description

Count the number of results for a given search. Useful to check before attempting to pull down a very large number of records.

Usage

clinicaltrials_count(query = NULL)

Arguments

query
Search pattern as a string; a vector of key-value pairs is interpreted as an advanced search and is therefore combined with '&'

Value

Number of results (integer).

Examples

Run this code
# count trials satisfying 'heart disease AND stroke AND California'
## Not run: clinicaltrials_count(query = 'heart disease AND stroke AND California')

# advanced search for open, interventional trials involving melanoma
## Not run: clinicaltrials_count(query = c('recr=Open', 'type=Intr', 'cond=melanoma'))

# can also use a named list
## Not run: clinicaltrials_count(query = list(recr='Open', type='Intr', cond='melanoma'))

Run the code above in your browser using DataLab