binit | R Documentation |
Translates number vector to bin index, given lower and upper limits of the domain and number of bins. A support function for (smoothing) histograms.
binit(x, xmin = min(x), xmax = max(x), nbin = 100)
x |
a numerical vector. |
xmin |
the lower limit of the domain. |
xmax |
the upper limit of the domain. |
nbin |
the number of bins (default=100). |
A list with components:
xbin |
a vector of |
xgrid |
a vector of |
nbin |
the number of bins. |
Eilers, P.H.C. and Marx, B.D. (2021). Practical Smoothing, The Joys of P-splines. Cambridge University Press.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.