Description Usage Arguments Examples
Converts factors that are scaled, only in the case where the scaling is coded with starting numbers such as "3 - city", "2 - town", "1 - village".
1 2 | scale_factor(column, digits = 1, na_id = NA, na_value = NA,
is_integer = FALSE)
|
column |
A column from a survey data frame where gender is recorded. |
digits |
How many digits are valid in the scaling. |
na_id |
Is there a special character ID for missing variables? (Default: |
na_value |
What should be the value of missing answers (Default: |
is_integer |
Numeric or integer should be returned? Defaults to |
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.