order_asit: Set levels of a factor to the order appeared in data

Description Usage Arguments Value Examples

View source: R/order_asit.R

Description

Set levels of a factor to the order appeared in data

Usage

1

Arguments

x

a vector or a factor

Value

a factor with levels in the order appeared in x. If x is originally a factor with unused levels, these unused levels will be the last levels in the order.

Examples

1
order_asit(c("small","large","median","large","small"))

wang114/foofactorsran documentation built on May 4, 2019, 12:57 a.m.