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: r.789695.n4.nabble.com/Removing-points-tp2195945p2195945.html Sent from the R help mailing list archive at Nabble.com.
Hi Egg, please read this: statmethods.net/management/subset.html ----------------Contact Details:------------------------------------------------------- Contact me: Tal.Galili@gmail.com | 972-52-7275845 Read me: talgalili.com (Hebrew) | biostatistics.co.il (Hebrew) | r-statistics.com (English) ---------------------------------------------------------------------------------------------- On Wed, May 12, 2010 at 3:33 PM, Blue.Egg <avonpfefer@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: > 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 > stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >[[alternative HTML version deleted]]
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 <avonpfefer@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: > 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 > stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > R-project.org/posting-guide.html<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]]
?subset --- On Wed, 5/12/10, Blue.Egg <avonpfefer at gmail.com> wrote:> From: Blue.Egg <avonpfefer at gmail.com> > Subject: [R] Removing points > To: r-help at r-project.org > Received: Wednesday, May 12, 2010, 8:33 AM > > 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: r.789695.n4.nabble.com/Removing-points-tp2195945p2195945.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help at r-project.org > mailing list > stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide R-project.org/posting-guide.html > and provide commented, minimal, self-contained, > reproducible code. >