Maybe, i can help (even when i'm not expert in R neither in english, just a beginner)
But i use SPlus more then R, so i'm not sure if it works in R example: >dta<-c(23,4,56,7,99,33) >interv<-2 >steps<-seq(1,length(dta),interv) > dta[steps] [1] 23 56 99 Regards Cristina Ortu�o Mojica Air Quality Monitoring Network in Mexico City metropolitan area Ministery of Environmental, Mexico City Tel. (+52) 55-52099903 xt. 6225 Fax. (+52) 55-55111460 Jalapa #15, 2nd floor Col Roma C.P. 06700 Mexico D. F. Our Internet URL: http://www.sma.df.gob.mx/ -----Mensaje original----- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] nombre de [EMAIL PROTECTED] Enviado el: Mi�rcoles, 26 de Noviembre de 2003 16:09 Para: [EMAIL PROTECTED] Asunto: [R] multiple peaks in data frame Hello, it wanted to know how I can extract of a dates frame the values peaks according to an interval that I establish. For example if dates are: 1 23 2 4 3 56 4 7 5 99 6 33 extract the date i wanted to divide into intervals of 2 an d to take alone the numbers 23, 56 and 99 of those 3 intervals. Thanks Ruben ______________________________________________ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help ______________________________________________ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help
