[R] vector vs array

From: alessandro carletti <alxmilton_at_yahoo.it>
Date: Tue 09 Aug 2005 - 01:34:54 EST


Hi!
OK, I'm trying to select some "useful outliers" from my dataset: I defined 11 "treshold" values (1 for each level of a variable (sampling site) as follows:

tresholds<-function(x)
{
tapply(x,mm$NAME,FUN=mean ,simplify = T, na.rm=T)->med

tapply(x,mm$NAME,FUN=sd ,simplify = T,
na.rm=T)->standev

standev+med

}
tresholds(mm$chl)

Now I'd like to select those values from vector mm$chl that are higher than each "treshold value", but how can I compare a vector with 1885 elements with the one with 11?
Sorry for this (probably) stupid question... and thanks in advance.
Alessandro



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Tue Aug 09 01:39:09 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:39:45 EST