Learn R Programming

wizaRdry (version 0.2.0)

getRedcap: Alias for 'redcap'

Description

This is a legacy alias for the 'redcap' function to maintain compatibility with older code.

Usage

getRedcap(
  instrument_name = NULL,
  raw_or_label = "raw",
  redcap_event_name = NULL,
  batch_size = 1000,
  records = NULL,
  fields = NULL,
  exclude_pii = TRUE,
  interview_date = NULL,
  date_format = "ymd"
)

Value

A data frame containing the requested REDCap data

Arguments

instrument_name

Name of the REDCap instrument

raw_or_label

Whether to return raw or labeled values

redcap_event_name

Optional event name filter

batch_size

Number of records to retrieve per batch

records

Optional vector of specific record IDs

fields

Optional vector of specific fields

exclude_pii

Default TRUE remove all fields marked as identifiable

interview_date

Optional; can be either: - A date string in various formats (ISO, US, etc.) to filter data up to that date - A boolean TRUE to return only rows with non-NA interview_date values

date_format

Default ymd define date format for interview_date

Examples

Run this code
if (FALSE) {
survey_data <- getRedcap("demographics")
}

Run the code above in your browser using DataLab