Re: [R] Determining frequency and period of a wave

2012-06-02 Thread Greg Snow
You could use the 'nls' function to fit a sine (or cosine) function to the data. On Fri, Jun 1, 2012 at 7:54 PM, Aaron Patterson wrote: > Hello!  I'm collecting data on a refrigerator that I'm using to cure > meat.  Specifically I am collection humidity and temperature readings. > The temperature

[R] Determining frequency and period of a wave

2012-06-01 Thread Aaron Patterson
Hello! I'm collecting data on a refrigerator that I'm using to cure meat. Specifically I am collection humidity and temperature readings. The temperature readings look sinusoidal (due to the refrigerator turning on and off). I'd like to calculate the frequency and period of the wave so that I ca