title: Stata: convert a matrix to dataset without losing names
body: <p>This question has been asked before but the answers do not seem to apply here. I would like to make a dataset from my regression output, without losing information. Consider:</p>
  
  <pre><code>clear *
  input str3 iso3 var1 var2 var3
  GBR    10 13 15
  USA    9 7 4
  FRA    8 8 7
  BEL    3 4 5
  end
  
  local vars var2 var3
  reg var1 var2 var3
  matrix A=r(table)
  matrix list A
  
  clear
  xsvmat A, names(col) norestore
  </code></pre>
  
  <p>Where Stata complains about the <code>_cons</code> column. I'm not interested in this column (although I also don't understand why it is such a problem to include it) but I don't find an option to cope with this in the <code>xsvmat</code>, <code>svmat</code> or <code>svmat2</code> help.</p>