title: Get only the structure(row names & column name) of data set in R
body: <p>Consider a data frame with row names and column names:</p>
  
  <pre><code>&gt; data &lt;- data.frame(a=1:3,b=2:4,c=3:5,row.names=c("x","y","z"))
  &gt; data
    a b c
  x 1 2 3
  y 2 3 4
  z 3 4 5
  </code></pre>
  
  <p>I just want to display the row names and column names of data like:</p>
  
  <pre><code>  a b c
  x   
  y   
  z   
  </code></pre>