[R] Excluding data in R

John Fox jfox at mcmaster.ca
Sun Oct 3 16:45:51 CEST 2004

Dear Laura, 

> -----Original Message-----
> From: r-help-bounces at stat.math.ethz.ch 
> [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Laura Collins
> Sent: Sunday, October 03, 2004 7:57 AM
> To: R-help at stat.math.ethz.ch
> Subject: [R] Excluding data in R
> I was hoping someone could help me!
> How do you exclude outliers from a set of data?  

It depends upon the context, but it could be as simple as using a negative
subscript; for example x[-c(5, 9)] removes the fifth and ninth element from
the vector x.

This kind of information is available in every introduction to R that I've
seen, including the introductory manual that comes with R.

I hope that this helps,

More information about the R-help mailing list