OrderedToNumeric: Convert an ordered factor to a numeric vector.

Description Usage Arguments Details

View source: R/variable.R

Description

Convert an ordered factor to a numeric vector.

Usage

1

Arguments

x

An ordered factor.

Details

If all levels are numeric they are converted to the same numbers. Else they are converted to 1, 2, 3, ... as per the ordering of the factors.


Displayr/flipTransformations documentation built on Nov. 28, 2018, 8:06 a.m.