Learn R Programming

REDCapTidieR (version 1.2.3)

extract_tibbles: Extract data tibbles from a REDCapTidieR supertibble into a list

Description

Take a supertibble generated with read_redcap() and return a named list of data tibbles.

Usage

extract_tibbles(supertbl, tbls = everything())

Value

A named list of tibbles

Arguments

supertbl

A supertibble generated by read_redcap(). Required.

tbls

A vector of form_names or a tidyselect helper. Default is dplyr::everything().

Details

This function makes it easy to extract a multiple instrument's data from a REDCapTidieR supertibble into a named list. Specifying instruments using tidyselect helper functions such as dplyr::starts_with() or dplyr::ends_with() is supported.

Examples

Run this code
superheroes_supertbl

# Extract all data tibbles
extract_tibbles(superheroes_supertbl)

# Only extract data tibbles starting with "heroes"
extract_tibbles(superheroes_supertbl, starts_with("heroes"))

Run the code above in your browser using DataLab