[R] Help with the ts function

From: Nelson, Gary (FWE) <Gary.Nelson_at_state.ma.us>
Date: Thu 09 Feb 2006 - 04:25:49 EST


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@state.ma.us

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 Thu Feb 09 05:56:36 2006

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:42:26 EST