search for: setsubset

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

Did you mean: getsubset
2011 May 26
0
Reference Classes: getter and setter functions/methods and possible shortcuts
...ask what's the smartest/recommended way of defining getter and setter function *shortcuts* (i.e. something like "[", "[<-") for Reference Class objects? Or is it desired to not use this stuff, but define methods like 'obj$getSubset(row=1:3, col=1)' and 'obj$setSubset(value=x)' instead? I have some example code that might help in clarifying what I'm exactly after: setRefClass( Class="MyDataFrame", fields=list( PRIMARYDATA="data.frame" ), methods=list( "subsetGet"=function(...