Re: [R] outliers in Box Plot

2016-09-06 Thread Giorgio Garziano
Hi Rosa, you may take advantage of the extremevalues package. https://cran.r-project.org/web/packages/extremevalues/extremevalues.pdf An example: set.seed(1023) v3 <- c(rnorm(100, 0, 0.2), rnorm(5, 4, 0.1), rnorm(5, -4, 0.1)) v4 <- sample(v3, length(v3)) nam <- as.character(1:length(v4)) df <-

Re: [R] outliers in Box Plot

2016-09-05 Thread Jim Lemon
Hi Rosa, Your data never seem to get through. Nevertheless, here is a suggestion: rodat<-data.frame(id=1:20,age=sample(c("10-20","21-30","31-40"),20,TRUE), weight=c(sample(40:70,18),110,120)) robp<-boxplot(weight~age,rodat) rodat$id[which(rodat$weight %in% robp$out)] Jim On Mon, Sep 5, 2016 at

[R] outliers in Box Plot

2016-09-05 Thread Rosa Oliveira
Dear all, I have searched all over and didn“t found an answer :( I need urgently to "extract" de identification of the weight outliers of the participants of a study. So, I have a data base with several variables: id weight are 2 off them. So, I've done a boxplot and found the weight have outli