Skip to contents

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)
#> Error in get_fields(expr = "cardiomiopathy", fields = core_info_fields): unused argument (expr = "cardiomiopathy")