Hi ya'll, thanks for pointing out the obvious ;-) I didn't think of that (and I showed it to a fellow colleague who didn't spot it either, I am going to blame her for that). Best, Stefan
On Tue, Apr 7, 2009 at 4:52 PM, Karl Ove Hufthammer <karl.huftham...@math.uib.no> wrote: > stefan.d...@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 > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.