View source: R/answer_as_binary.R
answer_as_binary | R Documentation |
This function allows you to convert multiple yes/no answers in binary format
answer_as_binary(df, vars)
df |
The dataframe containing the information. |
vars |
a variable (or vector of variables) quoted that you want to change to binary. |
The binary answers, changing "no" or "none" to 0 and "yes" to 1.
answer_as_binary(df, "tenencia_bici")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.