Re: [R] eliminating outliers

2013-08-05 Thread arun
/1947  2018 12 01/12/1947  2319 13 01/13/1947  1981 17 01/17/1947  2364 18 01/18/1947  1882 26 01/26/1947  1839 27 01/27/1947  2344 28 01/28/1947  2229 30 01/30/1947  1923 32 02/01/1947  2379 - Original Message - From: "Bosch, Darrell" To: arun Cc: Sent: Monday, August 5,

Re: [R] eliminating outliers

2013-08-05 Thread arun
HI, Please use ?dput() to show a reproducible example. set.seed(45) dat1<- data.frame(date= format(seq(as.Date("01-01-1947",format="%m-%d-%Y"),as.Date("02-01-1947",format="%m-%d-%Y"),by=1),"%m/%d/%Y"),value=sample(1800:2400,32,replace=FALSE))     dat1[c(TRUE,(diff(dat1$value)< -100) | (diff(d