None yet.

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.

Value

A factor.

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.

See also

Author

Dave Braze davebraze@gmail.com