title: In R, how can I filter based on the maximum value in each row of my data?
body: <p>I have a tibble (or data frame, if you like) that is 19 columns of pure numerical data and I want to filter it down to only the rows where at least one value is above or below a threshold. I prefer a tidyverse/dplyr solution but whatever works is fine.</p>
  
  <p>This is related to <a href="https://stackoverflow.com/questions/24558328/how-to-select-the-row-with-the-maximum-value-in-each-group">this question</a> but a distinct in at least two ways that I can see:</p>
  
  <ol>
  <li>I have no identifier column (besides the row number, I suppose)</li>
  <li>I need to subset based on the max across the current row being evaluated, not across a column</li>
  </ol>
  
  <p>Here are attempts I've tried:</p>
  
  <pre><code>data %&gt;% filter(max(.) &lt; 8)
  data %&gt;% filter(max(value) &lt; 8)
  data %&gt;% slice(which.max(.))
  </code></pre>