Description Usage Arguments Examples
Rescale the standard Eurobarometer satisfaction variable(s) with
categories "Very satisfied"
, "Fairly satisfied"
,
"Not very satisfied"
, "Not at all satisfied"
.
This is a wrapper function around the rescale_categories
function.
1 2 3 4 | rescale_satisfaction(column, from = c("Very satisfied", "Fairly satisfied",
"Not very satisfied", "Not at all satisfied"), to = c(2, 1, -1, -2),
na_labels = "DK", exact_from = TRUE, return_class = "numeric",
underscore = TRUE)
|
column |
A column from a survey data frame where gender is recorded. |
from |
Defaults to |
to |
Defaults to |
na_labels |
Defaults to |
exact_from |
Deafults to |
return_class |
Default is |
underscore |
Defaults to |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | rescale_satisfaction (column =
c("DK",
"Very satisfied",
"Fairly satisfied",
"Not very satisfied",
"Not at all satisfied"),
underscore = FALSE,
return_class = "character")
rescale_satisfaction (column =
c("DK",
"Very satisfied",
"Fairly satisfied",
"Not very satisfied",
"Not at all satisfied"),
return_class = "numeric")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.