get_fields: Get Up To 20 Study Fields

View source: R/get_fields.R

get_fieldsR Documentation

Get Up To 20 Study Fields

Description

This function takes a search expression and character vector of 20 or less field names and returns one dataframe with the parsed API response.

Usage

get_fields(search_expr, fields, max_studies = 500)

Arguments

search_expr

A string following the querying guidelines on clinicaltrials.gov

fields

A list or character vector with up to 20 field names.

max_studies

A number indicating how many studies of all the ones that match the search expression will be returned.

Examples

get_fields(expr = 'cardiomiopathy', fields = core_info_fields)

AdlCruz/rctapi documentation built on Jan. 28, 2024, 8:15 p.m.