[R] multiple peaks in data frame

Cristina Ortuño Mojica cortuno at sma.df.gob.mx
Wed Nov 26 23:49:44 CET 2003


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: r-help-bounces at stat.math.ethz.ch
[mailto:r-help-bounces at stat.math.ethz.ch]En nombre de
solares at unsl.edu.ar
Enviado el: Miércoles, 26 de Noviembre de 2003 16:09
Para: R-help at stat.math.ethz.ch
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

______________________________________________
R-help at stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help




More information about the R-help mailing list