convert.to.factor {iNZightPlots} | R 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)

[Package iNZightPlots version 2.14.1 Index]