Extract data tibbles from a REDCapTidieR supertibble and bind them to an environment
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.
bind_tibbles(supertbl, environment = global_env(), tbls = NULL)
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_name
s of the data tibbles to bind to the environment. Default is NULL
which binds all data tibbles.This function returns nothing as it's used solely for its side effect of modifying an environment.
## 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)
Useful links