search for: asperand

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

Did you mean: ampersand
2007 Apr 08
1
data encapsulation with classes
...Octave/Matlab background. I am trying to construct some classes in R to which I want to attach pieces of data. First, is attr(obj, 'member name') <- data the accepted way of doing this? Second, having attached member data with attr is there anything wrong with accessing it by the asperand (@), i.e. > t = "" > attr(t, 'test') <- 4 > t at test [1] 4 I can't find any documentation on using the asperand to access attributes like this. I saw it in a piece of code as I was googling around trying to find some information on attaching data to a cl...