scale_strip: Strip Scale Labels from Likert Data

Description Usage Arguments Value Author(s)

View source: R/munge.R

Description

Survey systems commonly export data files with values measured by Likert scales coded as character as opposed to numeric, (e.g. "10 - Very Likely" as opposed to 10). The scale_strip function pulls the first sequence of digits from a string and returns it as numeric.

Usage

1

Arguments

x

a vector, matrix, or data.frame containg character data

Value

numeric values stripped from the character values in x.

Author(s)

Brendan Rocks [email protected]


brendan-r/brocks documentation built on Feb. 17, 2018, 11:34 a.m.