tab_bins | R Documentation |
Tabulate a vector a
whose values fall into a set of integers
of maximum value nbins
. This function does no argument checking so please
ensure the maximum value of observations is not greater than nbins
.
tab_bins(a, nbins)
a |
a set of observations |
nbins |
number of bins |
nbin <- 10 a <- sample.int(n = nbin,size = 100,replace = TRUE) tabulate(bin = a,nbins = nbin) tab_bins(a = a,nbins = nbin)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.