Coerce a vector of class "factor" to numeric.

fact2num(f)

Arguments

f

A vector of class "factor".

Value

A vector of class "numeric".

Details

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

cf. > unclass(f)

See also

Author

Dave Braze davebraze@gmail.com