Skip to content

vector of center of

1 message · Yves Brostaux

#
I use the following custom function for such a result :

midpoint <- function(x, dx) {
y  <- (round((x-dx/2)/dx))*dx+dx/2
y
}

It gives the corresponding midpoints of your data, based on equally spaced 
classes (width = dx) starting at the origin of the x axis.

Hope this helped,

Y. Brostaux
At 04:01 19/11/02, you wrote: