Skip to content
Prev 68694 / 398506 Next

Defining binary indexing operators

what about this approach:

foo <- function(x, y) x+y
assign("$", foo)

would this overwrite $ and make R to forget its definitions in the global 
environment?