recode_batch: apply many recodings at once with vector of 'where'...

Description Usage Arguments

Description

apply many recodings at once with vector of 'where' conditions

Usage

1
recode_batch(df, tos, wheres, targets = NULL, questionnaire = NULL)

Arguments

df

a data frame or an ongoing recoding

tos

a vector of "to" values

wheres

a vector of "where" conditions; R code as strings (evaluated in namespace of the data)

targets

vector of target variables to create as characters. each change triggers a new_recoding(). if left empty, recodes to taret specified in new_recoding().

return

the ongoing recoding from after the last 'where' recoding. return to regular data frame with all new recodings visible with end_recoding()


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