as_scale: Convert variable to scale

Description Usage Arguments Details Author(s) See Also Examples

View source: R/scales.R

Description

Takes a character or factor variable and converts it to a factor with labels ordered by numerals in the label. Labels with duplicated numerals will be merged in the output.

Usage

1

Arguments

var

A numeric vector.

Details

Note: as_scale is convenient for converting likert scales from character to factor. This tends to happend when merging data with e.g. bind_rows.

Author(s)

Kristian D. Olsen

See Also

rescale_10 to convert 100-point scales to 10-point.

Examples

1

itsdalmo/reporttoolDT documentation built on May 18, 2019, 7:11 a.m.