Description Usage Arguments Examples
Create a uniform variable from use frequency categories such as code
c("Everyday/Almost everyday", "Two or three times a week",
"About once a week", "Two or three times a month",
"Less often", "Never"). This is a wrapper function around the
rescale_categories
function.
1 2 3 4 5 | rescale_time_frequency_use(column, from = c("Everyday/Almost everyday",
"Two or three times a week", "About once a week",
"Two or three times a month", "Less often", "Never"), to = c(250, 120, 50,
25, 12, 0), exact_from = TRUE, na_labels = c("NA", "DK"),
return_class = "numeric")
|
column |
A column from a survey data frame where frequency should be converted to a numeric value. |
from |
Defaults to |
to |
Defaults to |
exact_from |
Deafults to |
na_labels |
Defaults to |
return_class |
Default is |
1 2 3 | rescale_time_frequency_use (column = c(
"Everyday/Almost everyday", "Less often", "never", "NEVER", "NA", "DK"),
na_labels = "default")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.