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

______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel

Reply via email to