convert.to.factor: Convert to Factor

View source: R/general.R

convert.to.factorR Documentation

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

Author(s)

Tom Elliott

Examples

f <- convert.to.factor(runif(100, 0, 10))
levels(f)

iNZightVIT/iNZightPlots documentation built on May 4, 2024, 6:18 a.m.