Learn R Programming

REDCapTidieR (version 1.2.3)

bind_tibbles: Extract data tibbles from a REDCapTidieR supertibble and bind them to an environment

Description

Take a supertibble generated with read_redcap() and bind its data tibbles (i.e. the tibbles in the redcap_data column) to an environment. The default is the global environment.

Usage

bind_tibbles(supertbl, environment = global_env(), tbls = NULL)

Value

This function returns nothing as it's used solely for its side effect of modifying an environment.

Arguments

supertbl

A supertibble generated by read_redcap(). Required.

environment

The environment to bind the tibbles to. Default is rlang::global_env().

tbls

A vector of the redcap_form_names of the data tibbles to bind to the environment. Default is NULL which binds all data tibbles.

Examples

Run this code
if (FALSE) {
# Create an empty environment
my_env <- new.env()

ls(my_env)

superheroes_supertbl

bind_tibbles(superheroes_supertbl, my_env)

ls(my_env)
}

Run the code above in your browser using DataLab