| make.classes | R Documentation |
This function splits a dataset in n evenly distributed classes and calculates the number of elements of each class. It is very similar to hist(), but hist() does not always keep the number of breaks requested
make.classes(array,n)
array |
A numeric vector or matrix |
n |
Number of breaks |
The function returns a data matrix with 2 columns. Column breaks contains the upper limits of each class, while counts contains the number of elements
Wouter Buytaert, Imperial College London
topidx, topmodel
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.