fact2char: Coerce Factor Vector to Character Preserving Labels.

View source: R/factors.R

fact2charR Documentation

Coerce Factor Vector to Character Preserving Labels.

Description

Coerce a vector of class "factor" to character.

Usage

fact2char(f)

Arguments

f

A vector of class factor.

Details

Coerces a vector of class factor to numeric. This function preserves level labels associated with each element of f.

cf. > unclass(f)

Value

A vector of class "character".

Author(s)

Dave Braze davebraze@gmail.com

See Also

fact2num as.character


davebraze/FDButils documentation built on Feb. 24, 2023, 12:14 a.m.