Description Usage Arguments Examples
Rescale Eurobarometer trust in institutions variable with two levels,
"Tend to trust"
and "Tend not to trust"
.
This is a wrapper function around the rescale_categories
function.
1 2 3 | rescale_trust(column, from = c("Tend to trust", "Tend not to trust"),
to = c(1, 0), na_labels = "default", exact_from = TRUE,
return_class = "numeric", messages = FALSE)
|
column |
A column from a survey data frame where trust in an institution is recorded. |
from |
Defaults to |
to |
Defaults to |
na_labels |
Defaults to |
exact_from |
Deafults to |
return_class |
Default is |
messages |
Defaults to |
1 2 3 4 5 6 | rescale_direction (column =
c("Things are going in the right direction",
"Things are going in the wrong direction",
"Neither one nor the other (SPONTANEOUS)",
"DK"),
na_labels = "DK")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.