[R] Help with the ts function

Nelson, Gary (FWE) Gary.Nelson at state.ma.us
Wed Feb 8 18:25:49 CET 2006


I have a time series of temperature data recorded every 2 hours and I
would like to generate a spectrogram using the spectrum function that
examines cycles per day.  My statement for coding the series using the
ts function is

bevtemp<-ts(bevtemp,deltat=0.0833334) 

where 0.0833334 is 2 hours/24 hours.

I am wondering if this is the correct way to code the data?


Thanks for your help.

Gary Nelson.



************************************************************************
*
Gary A. Nelson
Massachusetts Division of Marine Fisheries
30 Emerson Avenue
Gloucester, MA 01930
Phone: (978) 282-0308 x114
Fax: (617) 727-3337
Email: Gary.Nelson at state.ma.us




More information about the R-help mailing list