title: Is there an easier way to access attributes of a class in R, can I use dot notation?
body: <p>I have created an object in R that contains several attributes. How can I easily access them?</p>
  
  <p>I can do:</p>
  
  <pre><code>attr(x, attributeName)
  </code></pre>
  
  <p>or:</p>
  
  <pre><code>attributes(x)$attributeName
  </code></pre>
  
  <p>but none of them is really convenient.</p>
  
  <p>Is there a quicker way (like the dot in C++ or Java)?</p>