recode_with: Recode values of variables using metadata that maps old...

Description Usage Arguments Value

View source: R/mutaters.R

Description

For iterating through variables and using each variable's metadata to recode the values from codes to descriptive values. Finished if actually needed.

Usage

1
recode_with(data, metadata, variable_name, code, value)

Arguments

data

The original dataframe to be recoded.

metadata

A dataframe with old and new values.

code

An unquoted name of the metadata variable that contains old values.

value

An unquoted name of the metadata variable that contains new values.

Value

A dataframe with recoded values.


eteppo/tvs-project documentation built on Aug. 13, 2019, 8:53 a.m.