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

Description Usage Arguments Value Examples

View source: R/new_factors.R

Description

Set levels of a factor to the reverse order appeared in data

Usage

1

Arguments

x

a factor

Value

a factor with levels in the reverse order appeared in x.

Examples

1
new_factor_rev(factor(c("a","b","c","a")))

Tangjiahui26/foofactors documentation built on May 18, 2019, 8:11 p.m.