Description Usage Arguments Examples
Rescale 3-level categorical variables
"Always acceptable"
, "Sometimes acceptable"
and "Never acceptable"
.
This is a wrapper function around the the rescale_categories
function.
1 2 3 | rescale_amount_3(column, from = c("Too much", "About the right amount",
"Too little"), to = c(1, 0, -1), na_labels = "default",
underscore = TRUE, exact_from = TRUE, return_class = "numeric")
|
column |
A column from a survey data frame where level of being acceptable is recorded with only three levels. |
from |
Defaults to |
to |
Defaults to |
na_labels |
Defaults to |
underscore |
Defaults to |
exact_from |
Deafults to |
return_class |
Default is |
1 2 3 4 5 6 7 8 9 10 11 12 13 | rescale_amount_3 (column = c("Too much",
"About the right amount",
"Too little",
"NA", "DK"))
rescale_amount_3(column =
c("Too much",
"About the right amount",
"Too little",
"NA", "DK"),
na_labels = "default",
return_class = "character")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.