Displaying 1 result from an estimated 1 matches for "getsubset".
Did you mean:
get_subset
2011 May 26
0
Reference Classes: getter and setter functions/methods and possible shortcuts
Hi everyone,
just wanted to 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(...