fact2num: Coerce Factor Vector to Numeric Preserving Levels.

View source: R/factors.R

fact2numR Documentation

Coerce Factor Vector to Numeric Preserving Levels.

Description

Coerce a vector of class "factor" to numeric.

Usage

fact2num(f)

Arguments

f

A vector of class "factor".

Details

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

cf. > unclass(f)

Value

A vector of class "numeric".

Author(s)

Dave Braze davebraze@gmail.com

See Also

fact2char as.numeric


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