[R] Defining binary indexing operators

From: Ali - <saveez_at_hotmail.com>
Date: Thu 28 Apr 2005 - 05:10:59 EST


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)



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Thu Apr 28 05:17:08 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:31:27 EST