Description Usage Arguments Value Examples
map vector to bins
1 |
nbin |
the number of bins or an increasing vector giving the bin boundaries |
type |
c("height", "width") either the same number of elements in a bin or equal widths for the bins |
the vector mapped to bin numbers 1 to nbin
1 2 3 | # a<- binned(x, 10) # 10 equal width bins
# a<- binned(x, 0:10) # ten bins for numbers between 0-10
# # other numbers that do not fit are in the first or last bin
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.