Description Usage Arguments Examples
Create a uniform variable from the three categories such as
"Things are going in the right direction"
,
"Things are going in the wrong direction"
,
"Neither one nor the other (SPONTANEOUS)"
or
" In the right direction"
,
"In the wrong direction"
,
"Neither one nor the other (SPONTANEOUS)"
.
This is a wrapper function around the rescale_categories
function.
1 2 3 | rescale_direction(column, from = c("right direction", "wrong direction",
"neither"), to = c(1, -1, 0), na_labels = "default", exact_from = TRUE,
return_class = "numeric")
|
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 |
1 2 3 4 5 6 7 | rescale_direction (
column = c("In the right direction",
"Things are going in the wrong direction",
"In the wrong direction",
"Thins are going in the right direction",
"Neither the one or the other (SPONTANEOUS)",
"Inap. (not 1 in eu28)", "DK"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.