search for: getgroupmemb

Displaying 10 results from an estimated 10 matches for "getgroupmemb".

2003 May 30
3
Missing 'getGroupMembers()'
Hi, I'm trying to write a method such that my own classes can be used with the groups like "Summary" and "Math", but when I tried to look for examples or just wanted to get an idea of which functions are the members of a group, I found out that the function "getGroupMembers" is not present... I couldn't find an alternative function, if there is one. Does anyone know a solution? Anton
2004 Jun 26
1
S4 group "Math", "getGroupMembers", "genericForPrimitive"
...'t work. See example code below. Moreover, what about 'genericForPrimitive' which is used in 'getGeneric'. It seems that this method is not included in the R Version 1.9.1 (also 1.9.0). See the example code of John Chambers at the end of this email. Why not add the method 'getGroupMembers' as proposed by John Chambers to the methods package? (see reply to mail: "Missing 'getGroupMembers()'" from Sat May 31 2003 - 15:18:18 EDT) Thanks for your attention, Matthias ################################################### ## Example Code #########################...
2013 Jul 31
2
S3 internal and group generics
...and rbind, even though they are listed in ?"internal generics" Based on my reading of the documentation and the source code, I believe this function lists all S3 internal generics: s3_internal <- function(fname) { # Functions in S4 group generics should be the same group <- c(getGroupMembers("Arith"), getGroupMembers("Compare"), getGroupMembers("Logic"), getGroupMembers("Math"), getGroupMembers("Math2"), getGroupMembers("Summary"), getGroupMembers("Complex")) primitive <- .S3PrimitiveGenerics # Ex...
2010 Aug 02
1
Convert an expression to a function
Hi John, Here is my code practicing. Please give me some advises. Thank you. Wu Gong # Extract the function string f.str <- sub("y~","",exprtext) # Get arglist from the text sp1 <- paste("\\",c(getGroupMembers(Arith),"(",")"),sep="") sp2 <- getGroupMembers(Math) sps <- paste(c(sp1,sp2),sep="",collapse="|") agl <- gsub("^[0123456789]+$","",strsplit(f.str,sps)[[1]]) agl.u <- unique(agl[agl != "" & agl != &qu...
2009 Aug 09
1
binary operators that implement row and column sweeps of matrices by vectors
...nrow=ncol(m.L),ncol=nrow(m.L))));}else print(c(" conformity failure with I,J,K,L= ",paste(I,J,K,L)));return(NA) } #a further step is to implement the various binary operators using the %text% convention. # some construction tools #set.of.ops<-c(getGroupMembers(Compare),getGroupMembers(Arith)) #names.for.ops<-as.array(c( "eq","gt","lt","ne","ge","le","plus","minus","x","exp","mod","dmod","div")) `%eq...
2004 Nov 15
1
R-2.0.1 is released
...e loop under some circumstances. (PR#7350) o upgrade(x, ask = FALSE) was broken for a "packageStatus" object. o Class "raw" had been omitted from the list of basic classes in the "methods" package and so could not be used in S4 classes. o Function getGroupMembers(), part of the definition of S4 classes, had been promised for release 2.0, but slipped through. -- O__ ---- Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~...
2004 Nov 15
1
R-2.0.1 is released
...e loop under some circumstances. (PR#7350) o upgrade(x, ask = FALSE) was broken for a "packageStatus" object. o Class "raw" had been omitted from the list of basic classes in the "methods" package and so could not be used in S4 classes. o Function getGroupMembers(), part of the definition of S4 classes, had been promised for release 2.0, but slipped through. -- O__ ---- Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~...
2014 Nov 25
0
problem with setGroupGeneric from package methods
...t;list", length(groups)) for(i in seq_along(groups)) generics[[i]] <- getGeneric(groups[[i]]) .checkGroupSigLength(groups, generics) } if(is(generic, "groupGenericFunction")) { .checkGroupSigLength(list(generic at generic), list(generic)) for(g in getGroupMembers(generic)) .updateMethodsInTable(getGeneric(g), where, attach) ### !!! } .resetInheritedMethods(fenv, mtable) mtable }
2005 Apr 18
1
R-2.1.0 is released
...behaves more sensibly for empty models. o plot.window() was using the wrong sign when adjusting xlim/ylim for positive 'asp' and a reversed axis. o If malloc() fails when allocating a large object the allocator now does a gc and tries the malloc() again. o packageSlot() and getGroupMembers() are now exported from the 'methods' package as they should from documentation and the Green Book. o rhyper() was giving numbers slightly too small, due to a bug in the original algorithm. (PR#7314) o gsub() was sometimes incorrectly matching ^ inside a string, e.g. gsub...
2005 Apr 18
1
R-2.1.0 is released
...behaves more sensibly for empty models. o plot.window() was using the wrong sign when adjusting xlim/ylim for positive 'asp' and a reversed axis. o If malloc() fails when allocating a large object the allocator now does a gc and tries the malloc() again. o packageSlot() and getGroupMembers() are now exported from the 'methods' package as they should from documentation and the Green Book. o rhyper() was giving numbers slightly too small, due to a bug in the original algorithm. (PR#7314) o gsub() was sometimes incorrectly matching ^ inside a string, e.g. gsub...