title: Aggregate mean in R
body: <p>I am trying to view the <strong>mean values of height, grouped by eye color</strong>
  of the characters, that have a number in their name.
  I tried it with aggregate but I can't figure out the solution</p>
  <pre><code>sw %&gt;%
    filter(grepl('[0-9]',name))%&gt;%
       aggregate(height~eye_color,mean)%&gt;%
          setNames(c(&quot;Eye color&quot;,&quot;Mean&quot;))
  </code></pre>