[R] Logical operators and named arguments

Ryan reckbo at bwh.harvard.edu
Thu Aug 7 06:20:11 CEST 2014


Hi,

I'm wondering why calling ">" with named arguments doesn't work as expected:

> args(">")
function (e1, e2) 
NULL

> sapply(c(1,2,3), `>`, e2=0)
[1] TRUE TRUE TRUE

> sapply(c(1,2,3), `>`, e1=0)
[1] TRUE TRUE TRUE

Shouldn't the latter be FALSE?

Thanks for any help,
Ryan


The information in this e-mail is intended only for the ...{{dropped:11}}



More information about the R-help mailing list