freorder: Reorder Levels of a Factor

Description Usage Arguments Value See Also

Description

Reorder Levels of a Factor

Usage

1

Arguments

x

a factor, an atomic vector. The vector is treated as a categorical variable whose levels will be reordered.

Value

By default, the function will return the factor in the descending order.

See Also

reorder freorder(factor(c(1000,100,10)))\n freorder(factor(c("a","z","m")))


STAT545-UBC-students/hw07-janehuang1647 documentation built on May 30, 2019, 12:50 p.m.