Description Usage Arguments Details Value Author(s) Examples
Generate histogram count for an integer-valued vector.
1 | groupcount1D(g, n)
|
g |
An integer-valued input vector. The max value in g is n. |
n |
The max value in g. |
This is implemented as an utility function for 1D histgram count. For efficiency, it does not check if the maximum value in the input vector exceeds the maximum value specified.
The count values.
Quanli Wang
1 2 3 | n <- 20
g <- sample.int(n,1000, replace = TRUE)
counts <- groupcount1D(g,n)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.