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

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -