unfactor: Unfactor a vector

Description Usage Arguments Value Examples

Description

Take a factor vector and return a value a vector of either type character or numeric by replacing the factors with their associated labels. If all label names are numeric, a numeric vector will be returned, otherwise a character vector will be returned.

Usage

1
  unfactor(factors)

Arguments

factors

The vector of factors to be unfactored

Value

character or numeric

Examples

1
unfactor(factor(c(3,2,1)))

russmisc documentation built on May 2, 2019, 4:44 p.m.