R building list of lists with lapply and adding in a name
<p>I'm using parLapply to read lots of small CSV files. Then running table() to tabulate the results and put them in a list of lists.  into the parLapply function I pass in the id/csv file name.   </p>

<p><code>ll &lt;- parLapply(ids, function(id){
  df&lt;-read.csv(paste0(id,".csv"))
  return(table(df$result))})</code></p>

<p>However the names of the list is lost <code>( names(ll) returns NULL )</code>.  How can I get the names for each id associated with the appropriate with the list.</p>