title: How can I apply dplyr's select(,starts_with()) on rows, not columns?
body: <p>I'm now trying to figure out a way to select data having specific values in a variable, or specific letters, especially using similar algorithm that <code>starts_with()</code> does.</p>
  <p>Say I have a data named &quot;school&quot; as below:</p>
  <pre><code>Name Math English
  James 80   90
  Tom   91   91
  Shaun 99   71
  Jack  92   91
  </code></pre>
  <p>here, <code>select(school, starts_with(&quot;M&quot;))</code> gives me the column &quot;Math&quot; only.
  I want to apply this on rows, such as to command 'give me the rows where name starts with &quot;J&quot; letter', which will in turn give me a data frame with two rows.</p>
  <p>I tried transposing the data and succeeded at what I wanted to get, but it's not what I really want though.</p>
  <p>How can get this to work?</p>