Displaying 1 result from an estimated 1 matches for "subsetget".
Did you mean:
subseteq
2011 May 26
0
Reference Classes: getter and setter functions/methods and possible shortcuts
...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(
idx.row,
idx.col,
drop=if(missing(idx.row)) TRUE else length(PRIMARYDATA) == 1,
...
){
PRIMARYDATA[idx.row, idx.col, drop=drop]
}
)
)
setMethod(
f="initialize",
signature=sig...