title: Using R convert data.frame to simple vector
body: <p>I have this <code>data.frame</code>:</p>
  
  <pre><code>&gt; print(v.row)
      X1  X2  X3  X4  X5  X6  X7  X8  X9 X10 X11 X12 X13 X14 X15 X16 X17 X18 X19 X20 X21 X22 X23 X24
  57 177 165 177 177 177 177 145 132 126 132 132 132 126 120 145 167 167 167 167 165 177 177 177 177
  &gt; dput(v.row)
  structure(list(X1 = 177, X2 = 165, X3 = 177, X4 = 177, X5 = 177, 
      X6 = 177, X7 = 145, X8 = 132, X9 = 126, X10 = 132, X11 = 132, 
      X12 = 132, X13 = 126, X14 = 120, X15 = 145, X16 = 167, X17 = 167, 
      X18 = 167, X19 = 167, X20 = 165, X21 = 177, X22 = 177, X23 = 177, 
      X24 = 177), .Names = c("X1", "X2", "X3", "X4", "X5", "X6", 
  "X7", "X8", "X9", "X10", "X11", "X12", "X13", "X14", "X15", "X16", 
  "X17", "X18", "X19", "X20", "X21", "X22", "X23", "X24"), row.names = 57L, class = "data.frame")
  </code></pre>
  
  <p>I would remove all row and column names in order to get a simple <code>vector</code>. But the <code>as.vector</code> function doesn't work (it returns a <code>data.frame</code>).</p>
  
  <pre><code>&gt; as.vector(v.row)
      X1  X2  X3  X4  X5  X6  X7  X8  X9 X10 X11 X12 X13 X14 X15 X16 X17 X18 X19 X20 X21 X22 X23 X24
  57 177 165 177 177 177 177 145 132 126 132 132 132 126 120 145 167 167 167 167 165 177 177 177 177
  </code></pre>