Description Usage Arguments Examples
For example, to rescale the standard Eurobarometer EU 2020 goals variable(s) with
categories "Too ambitious"
, "About right"
,
"Too modest"
.
This is a wrapper function around the rescale_categories
function.
1 2 3 | rescale_goal(column, from = c("Too ambitious", "About right", "Too modest"),
to = c(-1, 0, 1), na_labels = "default", return_class = "numeric",
underscore = TRUE)
|
column |
A column from a survey data frame where the situtation is recorded with four categories. |
from |
Defaults to |
to |
Defaults to |
na_labels |
Defaults to |
return_class |
Default is |
underscore |
Defaults to |
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.