Learn R Programming

ctrdata (version 1.1)

dbFindFields: Find names of fields in the database collection

Description

Given part of the name of a field of interest to the user, this function returns the full field names as found in the database.

Usage

dbFindFields(namepart = "", con, verbose = FALSE)

Arguments

namepart

A plain string (not a regular expression) to be searched for among all field names (keys) in the database.

con

A src connection object, as obtained with nodbi::src_mongo() or nodbi::src_sqlite()

verbose

If TRUE, prints additional information (default FALSE).

Value

Vector of field(s) found

Details

For fields in EUCTR (protocol- and results-related information), see also the register's documentation at https://eudract.ema.europa.eu/.

For fields in CTGOV (protocol-related information), see also the register's definitions at https://prsinfo.clinicaltrials.gov/definitions.html.

Note: Generating a list of fields with this function may take some time, and may involve running a mapreduce function is run on the server. If the user is not not authorised to run such a function on the (local or remote) server, random documents are sampled to generate a list of fields.

Examples

Run this code
# NOT RUN {
# }
# NOT RUN {
 dbFindFields("date")
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab