Skip to content
Back to formatted view

Raw Message

Message-ID: <BAY17-F16FFFFBB6F88249BC6B357D1220@phx.gbl>
Date: 2005-04-27T19:10:59Z
From: Ali -
Subject: Defining binary indexing operators

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)