plotrr (version 1.0.0)

makefacnum: Converts factor vectors to numeric vectors

Description

Converts factor vectors to numeric vectors.

Usage

makefacnum(x)

Arguments

x

A vector.

Value

A numeric vector.

Examples

Run this code
# NOT RUN {
x <- c("1", "2", "3")
x <- as.factor(x)
x
x <- makefacnum(x)
x
is.numeric(x)
# }

Run the code above in your browser using DataLab