df<-data.frame(
group=rep(c("a","b"), c(7,6)),
sales=c(3,4,6,5,1,30,8,4,6,9,10,27,9),
turn_over=c(1.5, 2.9, 1.9,20.5, 2.3, 1.65, 0.06, 3.4, 3.5, 2.23, 0.1,
9.8,1.4)
)
Hello all,
In this data set ? need to replace the outliers with 1.5IQR for each group
and for each variable so the final data set should look like
sales=c(3,4,6,5,1,8,8,4,6,9,10,10,9),
turn_over=c(1.5, 2.9, 1.9,2.9, 2.3, 1.65, 0.06, 3.4, 3.5, 2.23, 0.1,
3.5,1.4)
so far
I did try
k=boxplot(df[, c("sales","turn_over")],
df[,"groupID"]) any help will be
appreciated.
--
View this message in context:
http://r.789695.n4.nabble.com/r-help-tp4303025p4303025.html
Sent from the R help mailing list archive at Nabble.com.