Description Usage Arguments Value Examples
View source: R/orderLevelAlpha.R
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
1 | orderLevelAlpha(dfCol, numLevels, numBreaks)
|
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 |
orderLevelAlpha returns a data.frame object displaying the levels and level numbers obtained by converting the entries of the column dfCol
into factor classes
1 2 | orderLevelAlpha(iris[,"Sepal.Length"],5,6)
orderLevelAlpha(warpbreaks[,"wool"],2,5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.