unique_value_labels: Summarize unique value labels of a variable.

Description Usage Arguments Examples

Description

Summarize unique value labels of a variable.

Usage

1
unique_value_labels(x, numeric_values = FALSE)

Arguments

x

A variable to summarize.

numeric_values

Defaults to FALSE in which case the integer and numeric variables are no analyized. If (TRUE) it will create a similar character summary of the numeric variables.

Examples

1
2
3
4
5
6
7
8
unique_value_labels (x = c("apple", "strawberry", NA, "apple"))

#By default will not summarize numeric variables
unique_value_labels (x = c(1,2, NA, 3))

#But it is possible to create a similar summary of numeric variables.
unique_value_labels (x = c(1,2, NA, 3),
                     numeric_values = TRUE)

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