The "n" most frequently occurring values are returned, sorted by frequency of occurrence (in descending order). The names attribute includes information about the percentage of cases that have the indicated values.
cutByTable(x, n = 5, pct = TRUE)
A named vector.
A numeric or character variable
The maximum number of values that may be returned.
Default = TRUE. Include percentage of responses within each category
Paul E. Johnson pauljohn@ku.edu
This is used by plotSlopes, plotCurves, and other "newdata" making functions.