e_recode: A recode-function that updates the variable by reference....

Description Usage Arguments Value Examples

View source: R/recode_function.R

Description

A recode-function that updates the variable by reference. Requires data.table.

Usage

1
e_recode(dt, variable, old, new)

Arguments

dt

Working data.table

variable

The variable to recode

old

a vector of the old values

new

a vector of the new values

Value

Recoded data.table and prints the changes

Examples

1

edvinsyk/etools documentation built on Jan. 8, 2022, 1:31 p.m.