title: Changing outliers for NA in all columns in a dataset in R
body: <p>I'm a beginner with R and can't manage to change outliers for ALL columns in a dataset in R. 
  I succeeded changing one column at a time with </p>
  
  <pre><code>dataset$column[dataset$column %in% boxplot.stats(dataset$column)$out] &lt;- NA
  </code></pre>
  
  <p>But I have 21 columns on which I need to change the outliers for NA.</p>
  
  <p>How would you do that?</p>
  
  <p>How would you do it for a column range? Specific columns?</p>