rescale_agreement_4: Rescale level of agreement

Description Usage Arguments Examples

Description

Rescale level of agreement from the four levels "Totally agree", "Tend to agree", "Tend to disagree", "Totally disagree". This is a wrapper function around the rescale_categories function.

Usage

1
2
3
rescale_agreement_4(column, from = c("Totally agree", "Tend to agree",
  "Tend to disagree", "Totally disagree"), to = c(2, 1, -1, -2),
  na_labels = c("DK"), exact_from = TRUE, return_class = "numeric")

Arguments

column

A column from a survey data with a four-level agreement scale.

from

Defaults to c("Totally agree", "Tend to agree", "Tend to disagree", "Totally disagree").

to

Defaults to c(2,1,-1,2) )

na_labels

Defaults to c("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
3
rescale_agreement_4  (c("Totally agree", "Tend to agree",
                        "Tend to disagree", "Totally disagree", "Missing"),
                      na_labels = "Missing")

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