Create trimdataVerMay22

When min.val and/or max.val are not NULL, extremely small and/or large values will be removed before the data trimming procedure to avoid extreme inflation of SD. If rm is set to FALSE, outliers that are beyond MEAN+/-tr*SD will be REPLACED by MEAN+/-tr*SD. If rm is set to TRUE, outliers that are beyond MEAN+/-tr*SD will be removed and replaced by NA. The difference between this function and the original trimdata function is that this one allows simultaneous trimming of multiple outcome variables (much like Tim's function) whereas the original version only trims one outcome variable.