rescale_social_class_en: Rescale social class self-assessment in English

Description Usage Arguments Examples

Description

Rescaling the Eurobarometer social class self-assessment variables. This is a wrapper function around the the rescale_categories function.

Usage

1
2
rescale_social_class_en(column, from = NULL, to = NULL, exact_from = TRUE,
  na_labels = c("default"), return_class = "factor")

Arguments

column

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

from

Defaults to c("NULL") in which case the GESIS coding in English will be used.

to

Defaults to NULL in which case the GESIS coding will be shortened to c("working", "middle", "upper", "other", "none", "refusal", NA)

exact_from

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

na_labels

Defaults to c("default").

return_class

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

Examples

1
2
3
4
5
rescale_social_class_en (c("The working class of society",
                   "None (SPONTANEOUS)",
                   "The middle class of society",
                   "DK"),
                  return_class = "character")

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