groupLog | R Documentation |
Assign groups to a collection of values, on the log-transformed scale.
groupLog(x, n, xR = range(x[x > 0 & !is.na(x) & is.finite(x)]))
x |
Numeric vector of values to group. |
n |
Integer scalar, the number of groups. |
xR |
Numeric vector of length two, range of values used to define groups,
default is the range of finite, positive, non-missing |
myx <- c(100, 3000, 3, 20, 8000, 1000, 400, 50, 7, 20000) groupLog(myx, n=3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.