Is there an easier way to access attributes of a class in R, can I use dot notation?

Viewed 43979

I have created an object in R that contains several attributes. How can I easily access them?

I can do:

attr(x, attributeName)

or:

attributes(x)$attributeName

but none of them is really convenient.

Is there a quicker way (like the dot in C++ or Java)?

4 Answers
Related