Description Usage Arguments Examples
Create a uniform variable from three frequency categories such as
"Frequently"
, "Occasionally"
and "Never"
.
This is a wrapper function around the the rescale_categories
function.
1 2 3 | rescale_time_frequency_3(column, from = c("Frequently", "Occasionally",
"Never"), to = c(1, 0.5, 0), na_labels = c("NA", "DK"),
exact_from = TRUE, return_class = "numeric")
|
column |
A column from a survey data frame where time frequency is recorded with only three levels. |
from |
Defaults to |
to |
Defaults to |
na_labels |
Defaults to |
exact_from |
Deafults to |
return_class |
Default is |
1 2 | rescale_time_frequency_3 (column = c(
"frequently", "occasionally", "never", "NEVER", "NA", "DK"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.