Rdocumentation
powered by
Learn R Programming
rockchalk (version 1.6.2)
cutByTable: Select most frequently occurring values from numeric or categorical variables.
Description
The "n" most frequently occurring values are returned, sorted by frequency of occurrence (in descending order).
Usage
cutByTable(x, n = 5)
Arguments
x
A numeric or character variable
n
The maximum number of values that may be returned.
Value
A named vector.
Details
This is used by plotSlopes, plotCurves, and other "newdata" making functions.