Skip to content
Prev 176375 / 398503 Next

strange (?) behavoir of expand.grid()

Hi,


I think it's a FAQ (== vs all.equal to test for equality), and not  
related to expand.grid. See ?all.equal and ?"=="

You don't need which, gridd[gridd[,2]=="0.6" , ] would work fine, or  
more elegantly (imho),
Hope this helps,

baptiste
On 7 Apr 2009, at 15:35, stefan.duke at gmail.com wrote:

            
_____________________________

Baptiste Augui?

School of Physics
University of Exeter
Stocker Road,
Exeter, Devon,
EX4 4QL, UK

Phone: +44 1392 264187

http://newton.ex.ac.uk/research/emag