scalestrip: Strips Likert scale point labels, returns numeric or ordinal...

Description Usage Arguments Value Author(s)

Description

Survey systems export responses to Likhert scales with the scale labels on, meaning that R as factors or text as opposed to numeric data. This function takes labelled scales and returns unlabelled numeric data (by default), or an unlabelled ordered factor (if requested).

Usage

1
scalestrip(x, ordinal = FALSE)

Arguments

x

a vector, matrix, or data.frame, containing Likert data labelled in the format "Integer - some text", e.g. "10 - Extremely Likely"

ordinal

logical (TRUE\codeFALSE). Should the data returned be an ordered factor? Otherwise the data returned is numeric. Defaults to FALSE.

Value

Unlabelled numeric data (by defualt), or an unlabelled ordered factor (if requested).

Author(s)

Brendan Rocks rocks.brendan@gmail.com



Search within the NPS package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.