R output each data frame by a list of data
<p>I have a list of data and I want to sort them out by their name into individual data frame.</p>

<p>list:</p>

<pre><code>[1]
 Name Year Wage
 John 2000 500
 Paul 2000 600
 Peter 2000 800
 Mary 2000 700
 Kai 2000 800
 [2]
 Name Year Wage
 John 2005 600
 Paul 2005 700
 Peter 2005 1000
 Mary 2005 750
 Kai 2005 850
 [3]
 Name Year Wage
 John 2010 1600
 Paul 2010 900
 Peter 2010 1200
 Mary 2010 950
 Kai 2010 950
[n]
 Name Year Wage
 John 2011 1800
 Paul 2011 1000
 Peter 2011 1600
 Mary 2011 850
 Kai 2011 1050
</code></pre>

<p>Desired data frame 1:</p>

<pre><code>Name Year Wage
John 2000 500 
John 2005 600
John 2010 1600
John 2011 1800
</code></pre>

<p>Desired data frame 2:</p>

<pre><code>Name Year Wage
Paul 2000 600
Paul 2005 700
Paul 2010 900
Paul 2011 1000
</code></pre>

<p>and every name has its own .csv output.</p>

<p>I tried </p>

<pre><code>listy &lt;- list.files(path = "./",pattern = "*_output.csv", full.names = FALSE,recursive = TRUE)
lapply(listy, read.csv)
</code></pre>

<p>Then I have no idea how to continue. Thank you for your help.</p>