Displaying 1 result from an estimated 1 matches for "df_b".
Did you mean:
d_b
2010 May 12
1
slot assignment in S4 classes
...eneric(name = "setDoStuff<-", def = function(object, value){standardGeneric("setDoStuff<-")})
setReplaceMethod(f = "setDoStuff",
signature = "TestClass",
definition = function(object, value) {
object@myDf <- value
return( object )
})
df_b <- data.frame(cbind(letters=LETTERS, digits=runif(26)))
instance <- new(Class = "TestClass")
setDoStuff(instance)<-df_b
doStuff(instance)
Thank you in advance for your replies!
Cheers!!
Albert-Jan
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
All right...