levelsR Documentation

Levels Attributes

Description

levels returns the levels attribute of a variable.

Usage

## S4 method for signature 'fmVFactor'
levels(x)

Arguments

x

a FlashR factor.

Details

Currently, levels of a factor vector is a sequence number from 1 to the number of levels. FlashR doesn't support other factor values.

Value

a FlashR vector that contains the value of the levels.

Examples

vec <- fm.as.factor(as.integer(fm.runif(100, min=0, max=100)))
levels(vec)