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.