RE: [R] Creating unary operators

2005-01-07 Thread Berton Gunter
obert Sent: Friday, January 07, 2005 1:26 PM To: r-help@stat.math.ethz.ch Subject: [R] Creating unary operators Is it correct (by its lack of mention in the R-Language Definition Manual) that it is impossible to create a user-defined unary operator? Ex: (This doesn't work, but it's an examp

[R] Creating unary operators

2005-01-07 Thread McGehee, Robert
Is it correct (by its lack of mention in the R-Language Definition Manual) that it is impossible to create a user-defined unary operator? Ex: (This doesn't work, but it's an example of what I'm looking for) > "%PLUSONE%" <- function(x) x + 1 > %PLUSONE% 2 [1] 3 And if the above is impossible, am