Skip to content
Prev 62229 / 63424 Next

Bug in comparison of language objects?

I noticed the following odd behaviour today:

   exprs <- expression( mean(a), mean(b), { a }, { b } )

   exprs[[1]] == exprs[[2]]
   #> [1] FALSE

   exprs[[3]] == exprs[[4]]
   #> [1] TRUE

Does it make sense to anyone that the argument passed to `mean` matters, 
but the expression contained in braces doesn't?

Duncan Murdoch