supertbl_recode function

Recode fields using supertbl metadata

Recode fields using supertbl metadata

This utility function helps to map metadata field types in order to apply changes in supertbl tables.

supertbl_recode(supertbl, supertbl_meta, add_labelled_column_headers)

Arguments

  • supertbl: A supertibble generated using read_redcap()
  • supertbl_meta: an unnest-ed metadata tibble from the supertibble
  • add_labelled_column_headers: Whether or not to include labelled outputs