make_labelled | R Documentation |
Take a supertibble and use the labelled
package to apply variable labels to
the columns of the supertibble as well as to each tibble in the
redcap_data
, redcap_metadata
, and redcap_events
columns
of that supertibble.
make_labelled(supertbl, format_labels = NULL)
supertbl |
a supertibble generated using |
format_labels |
one or multiple optional label formatting functions. A label formatting function is a function that takes a character vector and returns a modified character vector of the same length. This function is applied to field labels before attaching them to variables. One of:
|
The variable labels for the data tibbles are derived from the field_label
column of the metadata tibble.
A labelled supertibble.
superheroes_supertbl
make_labelled(superheroes_supertbl)
make_labelled(superheroes_supertbl, format_labels = tolower)
## Not run:
redcap_uri <- Sys.getenv("REDCAP_URI")
token <- Sys.getenv("REDCAP_TOKEN")
supertbl <- read_redcap(redcap_uri, token)
make_labelled(supertbl)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.