[R] Defining binary indexing operators

Ali - saveez at hotmail.com
Wed Apr 27 21:10:59 CEST 2005


Assume we have a function like:

foo <- function(x, y)

how is it possible to define a binary indexing operator, denoted by $, so 
that

x$y

functions the same as

foo(x, y)




More information about the R-help mailing list