title: How to subset matrix to one column, maintain matrix data type, maintain row/column names?
body: <p>When I subset a matrix to a single column, the result is of class numeric, not matrix (i.e. myMatrix[ , 5 ] to subset to the fifth column).  Is there a compact way to subset to a single column, maintain the matrix format, and maintain the row/column names without doing something complicated like:</p>
  
  <pre><code>matrix( myMatrix[ , 5 ] , dimnames = list( rownames( myMatrix ) , colnames( myMatrix )[ 5 ] )
  </code></pre>