title: Elegant way to get the colclasses of a data.frame
body: <p>I currently use the following function to list the classes of a data.frame:</p>
  
  <pre><code>sapply(names(iris),function(x) class(iris[,x]))
  </code></pre>
  
  <p>There must be a more elegant way to do this...</p>