Function utild1clean
is applied to a pair of vectors and clean them from outliers with a rule specified by user (outliers will be replaced by the threshold values)
1  utild1clean(arr0, arr1, method = "bothends", nsigma = 3, d2=FALSE)

arr0 
vector of values/outcomes to be cleaned 
arr1 
vector of values/outcomes to be cleaned 
method 
specifies if outliers are to be removed from one or both side of array value distribution

nsigma 
number of sigmas to be considered as threshold for outlier removal 
d2 
works exactly as 
clean0 
result of arr0 cleaning 
clean1 
result of arr1 cleaning 
Vitaly Efremov <vitaly.efremov@dcu.ie>
utild2clean
1 2 3 4 5 6  s0<c(rep(c(1,3,7,10),3), 23)
s1<c(1:7)
s0; s1
a<utild1clean(arr0=s0, arr1=s1); a
a<utild1clean(s0, s1, method='right', nsigma=0.8); a

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.
All documentation is copyright its authors; we didn't write any of that.