bind_tibbles {REDCapTidieR}R Documentation

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)

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.

Value

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

Examples

## Not run: 
# Create an empty environment
my_env <- new.env()

ls(my_env)

superheroes_supertbl

bind_tibbles(superheroes_supertbl, my_env)

ls(my_env)

## End(Not run)

[Package REDCapTidieR version 1.1.1 Index]