recode_values: Recode values

View source: R/recode_values.R

recode_valuesR Documentation

Recode values

Description

Given a list of data created by bohemiase::retrieve_data_from_aws and a "schema" table created by bohemiase::get_form_schema, recode values to their human-readable equivalents

Usage

recode_values(
  data_list,
  schema_table,
  language = "english",
  variables_too = FALSE,
  messaging = TRUE,
  exclude_variables = c()
)

Arguments

data_list

A list of data, like sefull$data

schema_table

A dataframe of the form schema

language

The language to be used. By default, "english"

variables_too

Whether to recode variable names too. By default, FALSE

messaging

Whether to show messages

exclude_variables

A vector of variables to exclude from recoding (ie, those which are "select_multiple". Default: none)

Value

A dataframe


databrew/bohemiase documentation built on Nov. 2, 2022, 4:58 p.m.