orderLevelAlpha: orderLevelAlpha

Description Usage Arguments Value Examples

View source: R/orderLevelAlpha.R

Description

takes as input a column (dfCol), number of allowed levels (numLevels), and number of class divisions (numBreaks) and casts the numeric entries of the column into factor classes

Usage

1
orderLevelAlpha(dfCol, numLevels, numBreaks)

Arguments

dfCol

a column of a data.frame object for which the levels are to be displayed. Note that this is not a character string but the column itself (refer to examples)

numLevels

an integer indicating the allowed number of different numeric values

numBreaks

an integer indicating the number of class divisions (or exact boundaries) that should be taken

Value

orderLevelAlpha returns a data.frame object displaying the levels and level numbers obtained by converting the entries of the column dfCol into factor classes

Examples

1
2
orderLevelAlpha(iris[,"Sepal.Length"],5,6)
orderLevelAlpha(warpbreaks[,"wool"],2,5)

lwTools/agriTrf documentation built on March 26, 2020, 12:09 a.m.