rescale_time_frequency_3: Rescale time frequency 3

Description Usage Arguments Examples

Description

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.

Usage

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")

Arguments

column

A column from a survey data frame where time frequency is recorded with only three levels.

from

Defaults to c("frequently", "occasionally", "never").

to

Defaults to c(1,0.5,0) )

na_labels

Defaults to c("NA","DK")

exact_from

Deafults to TRUE. If FALSE you can use the partial matching, but beware that in this case, "twenty" will be replaced by

return_class

Default is "numeric", alternatives "character" or "factor".

Examples

1
2
rescale_time_frequency_3 (column = c(
 "frequently", "occasionally", "never", "NEVER", "NA", "DK"))

antaldaniel/surveyreader documentation built on May 16, 2019, 2:29 a.m.