Description Usage Arguments Examples
Rescale Eurobarometer trust in institutions variable with two levels,
"Very optimistic"
and "Fairly optimistic"
and
"Fairly pessimistic"
, "Very pessimistic"
.
This is a wrapper function around the rescale_categories
function.
1 2 3 4 | rescale_optimism_4(column, from = c("Very optimistic", "Fairly optimistic",
"Fairly pessimistic", "Very pessimistic"), to = c(2, 1, -1, -2),
na_labels = "default", underscore = TRUE, exact_from = TRUE,
return_class = "numeric")
|
column |
A column from a survey data frame where trust in an institution is recorded. |
from |
Defaults |
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 14 15 16 17 | rescale_optimism_4 (column =
c("Very optimistic",
"Fairly optimistic",
"Fairly pessimistic",
"Very pessimistic",
"DK", "NT/NV"),
na_labels = "default",
return_class = "character")
rescale_optimism_4 (column =
c("Very optimistic",
"Fairly optimistic",
"Fairly pessimistic",
"Very pessimistic",
"DK", "NT/NV"),
na_labels = "default",
return_class = "numeric")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.