levOrder: Level ordering

Description Usage Arguments Details Value

Description

Create factor levels in a standard way

Usage

1
levOrder(v, include.empty = TRUE, empty = c("back", "front"))

Arguments

v

Variable to convert to factor

include.empty

If specified, include empty strings as factors

empty

If include.empty is true, specifies location of empty level.

Details

If the underlying variable is numeric, like PPLOT, orders the factor numerically, otherwise uses a standard sort

Value

Vector containing order of levels.


nverno/rstuff documentation built on May 24, 2019, 10:55 a.m.