[R] strange (?) behavoir of expand.grid()
Karl Ove Hufthammer
Karl.Hufthammer at math.uib.no
Tue Apr 7 16:52:59 CEST 2009
stefan.duke at gmail.com:
> I came across a strange behavior of expand.grid (or at least strange to
> me).
>
> For certain values of one of my input variables - created by seq() - I
> have to use strings (e.g ==".6") to select a row of the object
> created by expand.grid(), for other values numerical (e.g. ==.8) and
> for some both work.
It’s not a bug. Please see http://wiki.r-project.org/rwiki/doku.php?id=misc:r_accuracy&s=floating
and the documents referenced therein.
--
Karl Ove Hufthammer
More information about the R-help
mailing list