Displaying 1 result from an estimated 1 matches for "createuniquename".
2008 Jun 19
2
S4 pass-by-value work-around?
...I'd really
rather stick to S4.
The basics of what I would like to do are coded below:
setClass("MyMatrix",
representation(
parameters="matrix",
uniqueCount="numeric"
),
prototype(
parameters=matrix(numeric(0),0,0),
uniqueCount=1
)
)
setGeneric("createUniqueName", function(object)
standardGeneric("createUniqueName"))
setMethod("createUniqueName", "MyMatrix", function(object){
retval <- paste("unique_", object at uniqueCount, sep="")
object at uniqueCount <- object at uniqueCount + 1
return(re...