search for: generatefram

Displaying 1 result from an estimated 1 matches for "generatefram".

Did you mean: generateframe
2007 May 25
1
Question about setReplaceMethod
...ass("foo", representation(x="data.frame", y="character")) setGeneric("setX<-", function(this, value), standardGeneric("setX<-")) setReplaceMethod("setX", "foo", function(this,value) { this@x <- value }) setGeneric("generateFrame", function(this), standardGeneric("generateFrame")) setReplaceMethod("generateFrame", "foo", function(this) { frame <- read.csv(file="myfile.csv", header=T) # read some input file this@x <- frame # this doesn't replace the value for me setX(th...