allLevels: return a list holding all levels for all columns / which cols...

Description Usage Arguments Value Author(s) Examples

Description

return a list holding all levels for all columns / which cols are ordered factors

Usage

1
2
3
4
## S3 method for class 'numdfr'
allLevels(x, onlyNonEmpty=FALSE)
## S3 method for class 'numdfr'
allOrderedFacts(x, onlyNonEmpty=FALSE)

Arguments

x

The numdfr to find all levels of

onlyNonEmpty

if TRUE only the levels for categorical (factor-like) columns are in the resulting list. Otherwise, these are represented as a character vector of length zero. Default is FALSE.

Value

list of character vectors.

Author(s)

Nick Sabbe

Examples

1
2
3
4
iris.nd<-numdfr(iris)
allLevels(iris.nd)
allLevels(iris.nd, onlyNonEmpty=TRUE)
allOrderedFacts(iris.nd)

NumDfr documentation built on May 2, 2019, 5:50 p.m.