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

Description Usage Arguments Value Examples

View source: R/new_factors.R

Description

Set levels of a factor to the order appeared in data

Usage

1

Arguments

x

a factor

Value

a factor with levels in the order appeared in x.

Examples

1
new_factor(factor(c("d","b","a","d")))

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