This function finds outliers in pollen time-series and replaces them with background values
outliers_replacer(value, date, threshold = 5, sum_percent = 100)
pollen concentration values
dates
a number indicating how many times outlying value needs to be larger than the background to be replaced (default is 5)
a sum_percent parameter
a new data.frame object with replaced outliers
Kasprzyk, I. and A. Walanus.: 2014. Gamma, Gaussian and Logistic Distribution Models for Airborne Pollen Grains and Fungal Spore Season Dynamics, Aerobiologia 30(4), 369-83.