Subset out all elements with the same name of list
<p><strong><em>Data</em></strong></p>

<p>I have a list of lists that looks something like this:</p>

<pre><code>sublist1 &lt;- list(power=as.matrix(c(rnorm(10)),c(rnorm)),x=rnorm(10),y=rnorm(10))
sublist2 &lt;- list(power=as.matrix(c(rnorm(10)),c(rnorm)),x=rnorm(10),y=rnorm(10))
sublist3 &lt;- list(power=as.matrix(c(rnorm(10)),c(rnorm)),x=rnorm(10),y=rnorm(10))
mylist = list(sublist1,sublist2,sublist3)
</code></pre>

<p>My goal would be to pull out only the matrices named <code>power</code></p>

<p>I've tried </p>

<pre><code>mylist_power =mylist[sapply(mylist, '[', 'Power')]
</code></pre>

<p>But thats not working. </p>

<p><strong><em>Brownie point alert!!!</em></strong></p>

<p>How can I find the mean of the newly created list of matrices named power?</p>