Subset over multiple numerical columns in R -
i have 3 columns of data, each numeric distance value.
i created subset each individual column eliminate outliers following function:
newdata <- subset(x, x < mean(x)+3*sd(x) & x > mean(x)-3*sd(x))
the problem is, creates 3 new vectors different length, , run t-test on manipulated data.
how can best create subset of 3 columns data outside condition discarded?
Comments
Post a Comment