Description Usage Arguments Examples
Create a uniform variable from four categories such as
"Not at all interested in politics", "Slightly interested in politics",
"Moderately interested in politics", "Strongly interested in politics".
This is a wrapper function around the rescale_categories
function.
1 2 3 4 5 |
column |
A column from a survey data with a four-level scale. |
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 | rescale_political_interest (c("Not at all interested in politics",
"Slightly interested in politics",
"DK",
"Moderately interested in politics",
"Strongly interested in politics"),
return_class = "numeric")
rescale_political_interest (c("Not at all interested in politics",
"Slightly interested in politics",
"DK",
"Moderately interested in politics",
"Strongly interested in politics"),
underscore = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.