iNZightPlots (version 2.12.4)

convert.to.factor: Convert to Factor

Description

Convert a numeric variable in to a factor with four levels.

Usage

convert.to.factor(x)

Arguments

x

a numeric vector

Value

a factor variable

Examples

Run this code
# NOT RUN {
f <- convert.to.factor(runif(100, 0, 10))
levels(f)
# }

Run the code above in your browser using DataLab