levelOrder: Reorder factor levels.

Usage Arguments Details Value Author(s) See Also

Usage

1
levelOrder(f, new.order)

Arguments

f

A factor.

new.order

A character vector containing all and only the levels of f, in the desired order.

Details

Reorders the levels of factor f as specified in new.order, which must contain all and only the existing levels of f (including unused levels), but in the desired order. If new.order and levels(f) do not contain exactly the same elements, then do nothing.

Value

A factor.

Author(s)

Dave Braze davebraze@gmail.com

See Also

factor levels relevel


davebraze/FDB1 documentation built on May 14, 2019, 8:59 p.m.