Before everyone re-invents the wheel:

All current versions of the S language (including R for several
years) have the generic function   all.equal()
with a method for simple numeric vectors (but with many other methods too).

The point is that you need a *combination* of relative and
absolute difference.  Look at all.equal.numeric() if you want to
learn ..

Martin Maechler <[EMAIL PROTECTED]>     http://stat.ethz.ch/~maechler/
Seminar fuer Statistik, ETH-Zentrum  LEO C16    Leonhardstr. 27
ETH (Federal Inst. Technology)  8092 Zurich     SWITZERLAND
phone: x-41-1-632-3408          fax: ...-1228                   <><

______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help

Reply via email to