[R] Verify that a grid is uniform

Marc Lamblin marcgg.lamblin at gmail.com
Mon Apr 6 13:50:24 CEST 2015


I need to control of a given grid is uniform. This control using signif
until now works:

if (all(signif(abscissa[1:(length(abscissa) - 1) + 1] -
abscissa[1:(length(abscissa) - 1)]) == signif(rep((range(abscissa)[2] -
         range(abscissa)[1])/(length(abscissa) - 1), length(abscissa) -
1)))) {
# other stuff
}

Does someone have some suggestions to improve this control? Thanks in
advance!! :)

Marc

	[[alternative HTML version deleted]]



More information about the R-help mailing list