numeric_without_unit: Labelled numeric variable without unit name and missing label

Description Usage Arguments

Description

Converts a standard better / same / worse scale to numeric 1, 0, -1.

Usage

1
2
numeric_without_unit(labelled_var, unit = NULL, na_label = NULL,
  min_value = NULL, max_value = NULL, comma = FALSE)

Arguments

labelled_var

column from a survey data frame where gender is recorded.

unit

An explicit unit name to be removed, such as "years".

na_label

An explicit missing label to be removed such as "refusal"

min_value

Optional maximum value, anything reaching this level will be replaced with NA.

max_value

Optional maximum value, anything reaching this level will be replaced with NA.

comma

If decimals are written with commas, such as 10,7 instead of 10.7


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