search for: namedlist

Displaying 7 results from an estimated 7 matches for "namedlist".

Did you mean: name_list
2011 Mar 04
1
Extending type list: names and inherited methods issue
Hi, I want to extend the type list, but it looks like the names are not handled properly (in the show method), not the [ method. See below for code example. I imagine this comes from the S3/S4 mixing, but I would like to understand and the recommended work around (that avoid redefining all the list methods [, $, etc...). Thank you. Bests, Renaud # define S4 class that inherits from list
2012 Aug 22
1
loading both RPostgreSQL and RSQLite leads to problems
...Y") object="genericFunction" object="genericFunctionWithTrace" object="MethodDefinition" object="MethodDefinitionWithTrace" object="MethodSelectionReport" object="MethodWithNext" object="MethodWithNextWithTrace" object="namedList" object="ObjectsWithPackage" object="oldClass" object="PostgreSQLDriver" (inherited from: object="dbObjectId") object="refClassRepresentation" object="refMethodDef" object="refObjectGenerator" object="signature"...
2009 Dec 18
2
Vectorized switch
What is the 'idiomatic' way of writing a vectorized switch statement? That is, I would like to write, e.g., vswitch( c('a','x','b','a'), a= 1:4, b=11:14, 100 ) => c(1, 100, 13, 4 ) equivalent to ifelse( c('a','x','b','a') ==
2012 Mar 21
1
Trouble installing the XML package
...nly one having trouble with this package but here goes. I want to install XML on Ubuntu. I installed libxml2-dev and everything works out fine until I get the following: Error in reconcilePropertiesAndPrototype(name, slots, prototype, superClasses, : No definition was found for superclass "namedList" in the specification of class "XMLOutputStream" Error : unable to load R code in package 'XML' ERROR: lazy loading failed for package ?XML? Googling this was no help. This is the entire R console output: > install.packages("XML",dependencies=TRUE,configure.a...
2010 May 20
1
getSubClasses()?
Hi,   Is there a built in function that returns a character vector of all subclasses of a given superclass? showClass(Class = "SomeClass") contains the info that I want, but I don't know how to access it. getSubClasses <- function(superClass) return(setdiff(getClasses(.GlobalEnv), superClass)) wíll only work if the global enviroment isn;t filled with other class definitions.
2011 May 14
1
By default, `names<-` alters S4 objects
Hi, I was stumped by this. The two S4 objects below looked exactly the same: > a1 An object of class "A" Slot "aa": integer(0) > a2 An object of class "A" Slot "aa": integer(0) > str(a1) Formal class 'A' [package ".GlobalEnv"] with 1 slots ..@ aa: int(0) > str(a2) Formal class
2003 Dec 08
1
aggregate and names of factors
Hello, I use the function 'aggregate' a lot. One small annoyance is that it is necessary to name the factors in the 'by' list to get the names in the resulting data.frame (else, they appear as Group.1, Group.2...etc). For example, I am forced to write: aggregate(y,list(f1=f1,f2=f2),mean) instead of aggregate(y,list(f1,f2),mean) (for two factors with short names, it is not such