title: How to replace outliers with the 5th and 95th percentile values in R
body: <p>I'd like to replace all values in my relatively large <strong>R</strong> dataset which take values above the 95th and below the 5th percentile, with those percentile values respectively. My aim is to avoid simply cropping these outliers from the data entirely.</p>
  
  <p>Any advice would be much appreciated, I can't find any information on how to do this anywhere else. </p>