I'm trying to figure out how to remove a whole row when I find an outlier, outside a given limit, in a column of the same matrix. So I got a data set with labeled columns(B,C,D etc) from where I want to remove outliers that's greater than 3 standard deviations. When an outlier is found the whole row is to be removed. When done with one column the same procedure is to be repeated for the next one.
I found this post: Removing matrix rows if values of a cloumn are outliers but the code there removes all outliers outside 1.5 standard deviations, not outside your own limit, right?
(I'm sorry if this is a basic question, I'm relatively new to R. I've only been coding with MatLab before.)