apply many recodings at once with vector of 'where' conditions
1 | recode_batch(df, tos, wheres, targets = NULL, questionnaire = NULL)
|
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() |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.