Learn R Programming

redcapAPI (version 1.1)

queryRecords: Query a REDCap Database

Description

Allows for selection of fields, forms, records, and events from a REDCap database.

Usage

queryRecords(rcon,fields=NULL,forms=NULL,records=NULL,events=NULL)

Arguments

rcon
A connection object as created by redcapConnection
fields
A character vector of fields to be chosen from the database.
forms
A character vector naming the forms to be chosen from the database.
records
A vector of subject id's to be chosen from the database. The default field name for the id in REDCap is 'study_id', but it is possible for the user to change this. Only exact matches are selected.
events
A character vector of events from a longitudinal database to be chosen from the database.

Details

This function is called internally by exportRecords.redcapDbConnection and is not available to the user.

References

This functionality were originally developed by Jeffrey Horner in the redcap package. https://github.com/vubiostat/redcap