Displaying 1 result from an estimated 1 matches for "getprimarydata".
2011 May 26
0
Reference Classes: getter and setter functions/methods and possible shortcuts
...c$PRIMARYDATA) == 1,
...
){
if(!inherits(src, "MyDataFrame")){
stop("Expecting 'src' to be of class 'MyDataFrame")
}
return(src$PRIMARYDATA[idx.row, idx.col, drop=drop])
}
mdf <- myDataFrameCreate(a=1:5, b=1:5)
mdf
mdf$PRIMARYDATA
mdf$getPRIMARYDATA() # automaticall set via
'getRefClass("MyDataFrame")$accessors()'
mdf$subsetGet(1,1)
mdf$subsetGet(1,)
mdf$subsetGet(,1)
mdf$subsetGet(,1,drop=FALSE)
mdf[1,1]
mdf[1,]
mdf[,1]
mdf[,1, drop=FALSE]
Thanks a lot for any advice,
Janko