It would be helpful to post some actual data. You can do: mean(x[x != -1])
On Wed, May 12, 2010 at 8:33 AM, Blue.Egg <avonpfe...@gmail.com> wrote: > > I have a some data, and imagine a column of how many parasitic eggs found > in > the stool of some children some of the children we do not have this data so > we put -1 in stead. How can you remove the people with -1, to calculate > means and do box plots. Thank you! > -- > View this message in context: > http://r.789695.n4.nabble.com/Removing-points-tp2195945p2195945.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html<http://www.r-project.org/posting-guide.html> > and provide commented, minimal, self-contained, reproducible code. > -- Jim Holtman Cincinnati, OH +1 513 646 9390 What is the problem that you are trying to solve? [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.