Description Usage Arguments Value Author(s)
Averages y into bins according to the positon of a in the breaks Either give N=number of breaks, or N+1 breaks Breaks are defined as x>breaks[i], and x<=breaks[i+1] if fill=T, fill empty bins using linear interpolation from the neighbours to the center of the bin could be considerably speeded up by using cut ?cut
1 |
x |
vector of x values |
y |
vector of y values, same length as x |
N |
Number of breaks (or NULL if breaks are supplied) |
breaks |
vector of breaks (optional, instead if N) |
bFill |
if TRUE fill empty bins using linear interpolation from the neighbours to the center of the bin |
list(breaks,centers,avg,nobs) Returns the breaks, centers, the averaged values and nobs, the number of observations averages
Thomas Laepple
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.