new_recoding: Start a new recoding

Description Usage Arguments Details Value

Description

Start a new recoding

Usage

1
new_recoding(df, target, source = NULL)

Arguments

df

the source data as a data.frame

target

the name of the new variable created through the recoding

source

the variable to recode from

Details

When conditions are conflicting, the last condition that applies is used recoding is a special case of a composition, where the source variable is defined from the start and does not change.

Value

the input data frame with - an additional column named after the value of 'target' - background setup to manage step by step recoding of the source variable


mabafaba/composr documentation built on June 10, 2019, 8:17 a.m.