Learn R Programming

redquack (version 0.3.0)

tbl_redcap: Create REDCap Data Table Reference

Description

Creates a tbl reference to the main REDCap data table in the database. The original table name is stored as an attribute to preserve context through dplyr operations (limited to filter, select, arrange, and group_by). Uses the data table name stored in the connection attributes if available.

Usage

tbl_redcap(conn, table_name = NULL)

Value

A tbl_sql object referencing the data table with redcap_table attribute.

Arguments

conn

A DuckDB connection object.

table_name

Character string specifying the table name. If NULL, uses the table name stored in connection attributes. Default is NULL.

Examples

Run this code
if (FALSE) {
data <- tbl_redcap(conn)
}

Run the code above in your browser using DataLab