search for: groupgenericfunction

Displaying 5 results from an estimated 5 matches for "groupgenericfunction".

2005 Nov 14
1
Tidiest way of modifying S4 classes?
...ithNext", by class "MethodDefinition" Class "SealedMethodDefinition", by class "MethodDefinition" Class "standardGeneric", by class "genericFunction" Class "nonstandardGenericFunction", by class "genericFunction" Class "groupGenericFunction", by class "genericFunction" > If I want a new plot.pedigree function, do I make a slot, or what is the approach to take? Suggestions most welcome. Thanks -- Patrick Connolly HortResearch Mt Albert Auckland New Zealand Ph: +64-9 815 4200 x 7188 ~.~.~.~.~.~.~.~.~.~.~.~.~.~....
2005 Dec 29
1
trouble with S4 methods for group "Summary"
...: Summary function (..., na.rm = FALSE) standardGeneric("max") <environment: 0x19447a28> Methods may be defined for arguments: na.rm However, group "Summary" purports to allow you to define methods for arguments "x" and "na.rm". > Summary groupGenericFunction for "Summary" defined from package "base" function (x, ..., na.rm = FALSE) stop("function 'Summary' is a group generic; do not call it directly", domain = NA) <environment: 0x16aef098> Methods may be defined for arguments: x, na.rm How does th...
2014 Nov 25
0
problem with setGroupGeneric from package methods
...mtable <- .mlistAddToTable(generic, mlist) # by default, adds to an empty table assign(".MTable", mtable, envir = env) } else ## the current .MTable mtable <- getMethodsForDispatch(generic) .resetInheritedMethods(env, mtable) if(is(generic, "groupGenericFunction")) { for(gp in generic at groupMembers) { gpDef <- getGeneric(gp) if(is(gpDef, "genericFunction")) .getMethodsTable(gpDef) # force initialization w. group methods } } NULL } ############### .updateMethodsInTable &lt...
2011 Feb 05
1
Seeking help to define method for '+'
Dear all, I am trying to define "+" method for my newly defined s4 class which is as follows: setClass("Me", sealed=F,representation(x1 = "numeric", x2 = "character")) new1 <- new("Me", x1=2, x2="comment1") new2 <- new("Me", x1=3, x2="comment1") setMethod("+", "Me",
2010 Jul 07
2
how to define method for "+" function in a new class
Dear R developers, I have a new class, which I called "Molecule", and have tried to define = a "+" operation for 2 objects of this class. This is what I have written so far, although the method is not complete = (I'm trying to look at it at intermediate stages): setMethod( f=3D"+", signature(x=3D"Molecule",y=3D"Molecule"),