levOrder: Level ordering

Description Usage Arguments Details Value

View source: R/factors.R

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/stuff documentation built on May 23, 2017, 5:58 p.m.