Learn R Programming

dsBase (version 6.3.3)

levelsDS: Returns the levels of a factor vector

Description

This function is similar to R function levels.

Usage

levelsDS(x)

Value

a list, the factor levels present in the vector

Arguments

x

a factor vector

Author

Alex Westerberg, for DataSHIELD Development Team

Details

The function returns the levels of the input vector or list.