title: filter dataframe with multiple conditions name matching in R dplyr
body: <pre><code>type sex eth  a_t a_tm b_tm c_tm d_tm e_tm 
  1    m   a    0      0    0    1    1    0
  0    f   b    1      1    0    0    1    1
  0    m   a    0      0    0    1    1    1
  1    f   a    1      1    1    1    0    0
  0    f   c    1      0    0    1    0    1
  </code></pre>
  <p>How can I select columns using <code>dplyr</code> where the column ends with <code>_tm</code> or the column is in a list containing <code>sex</code> or <code>eth</code>?</p>
  <p>expected output</p>
  <pre><code>sex eth  a_tm b_tm c_tm d_tm e_tm 
  m   a    0    0    1    1    0
  f   b    1    0    0    1    1
  m   a    0    0    1    1    1
  f   a    1    1    1    0    0
  f   c    0    0    1    0    1
  </code></pre>
  <p>I want to do this in <code>dplyr</code> without using <code>grepl</code>... is this possible?</p>