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.
dbFindFields(namepart = "", con, verbose = FALSE)
A plain string (can include a regular expression, including Perl-style) to be searched for among all field names (keys) in the database.
A src connection object, as obtained with nodbi::src_mongo() or nodbi::src_sqlite()
If TRUE
, prints additional information
(default FALSE
).
Vector of names of found field(s)
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 authorized to run such a function on the (local or remote) server, random documents are sampled to generate a list of fields.
# NOT RUN {
# }
# NOT RUN {
db <- nodbi::src_sqlite(
collection = "my_collection"
)
dbFindFields(
nampepart = "date",
con = db
)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab