Skip to content
Prev 43387 / 398506 Next

setMethodReplace.. Help!

The error message says it:  in R, the arguments for the generic function 
"[" include i and j; the method definition must include those as well. 
Do getGeneric("[") or ?"[" to see the arguments.

As has been said on the R mailing lists in the past, R is generally 
compatible with the published books, but not when there is a better 
approach.  Having the extra arguments allows methods to be based on the 
class of the row or column indices.
wolski wrote: