Skip to content
Prev 37122 / 63424 Next

Defining a method that behaves like '$'?

Alright.
Maybe the symbol I chose was not appropriate. I tried ':' to be able to 
do 'a:name' with 'a' a S4 object.
I get the following error:
Error in genericForPrimitive(f) :
   methods may not be defined for primitive function ":" in this version 
of R

Does there exist any symbol that would be suitable for the job?
Thanks