Learn R Programming

REDCapTidieR (version 1.2.3)

get_metadata_spec: Get metadata specification table

Description

Get metadata specification table

Usage

get_metadata_spec(
  metadata_tbl,
  selected_cols,
  names_prefix,
  names_sep,
  names_glue
)

Value

a tibble

Arguments

metadata_tbl

A metadata tibble from the supertibble generated by read_redcap().

selected_cols

Character string vector of field names for checkbox combination

names_prefix

String added to the start of every variable name.

names_sep

String to separate new column names from names_prefix.

names_glue

Instead of names_sep and names_prefix, you can supply a glue specification and the unique .value to create custom column names.