title: Unlist and retain list names intact in R
body: <p>I have data similar to these:</p>
  
  <pre><code>listdata &lt;- list(matrix(c(1,1,1,1,3,3,3,3),nrow=2,ncol=4),matrix(c(1,1,1,1,2,2,2,2),nrow=2))
  names(listdata) &lt;- c("5555","5566")
  
  RowData &lt;- lapply(listdata, "rownames&lt;-", c("from","to"))
  
  FrameData &lt;- lapply(RowData, function(x) as.data.frame(x))
  </code></pre>
  
  <p>Now I do unlist the list as wanted, but the list names are changed. How to preserve the list names?</p>
  
  <pre><code>as.matrix(unlist(FrameData))
  </code></pre>
  
  <p>Wanted output without the <code>.V11</code> column names:</p>
  
  <pre><code>       [,1]
   5555    1
   5555    1
   5555    1
   5555    1
   5555    3
   5555    3
   5555    3
    .....
    .....
  </code></pre>
  
  <p>EDIT: This is not good example since in my case I don't have the <code>5555.V1</code> but only adds only number: 1,2,3,4... So what I have actually is this:</p>
  
  <pre><code>    [,1]
   55551    1
   55552    1
   55553    1
   55554    1
   55555    3
   .... 
   555536   3
   555537   3
    .....
  
   Rname &lt;- rownames(listdata)
   strtrim(Rname, nchar(Rname)-1)
  </code></pre>
  
  <p>the problem is that the numbering is increasing...so the problem is to define <code>y</code>  nchar(x)-y</p>