Re: [R] average waveform over many cycles

2007-10-10 Thread Bill Simpson
Thanks Jim for the help. I forgot to say that one of my main snags is figuring how how to chop up the one long (44100 samples) vector into pieces (400 of them). This is my C-inspired way of thinking but there must be a better way in R. cyclelength=44100/400 for i= 1 to 400 for j= 1 to cycleleng

[R] average waveform over many cycles

2007-10-10 Thread Bill Simpson
I have 400 cycles of a noisy waveform. I would like to find the average (over the 400 cycles) of one cycle. Please tell me to do it in R. Any suggestions welcome! Thanks very much for any help. Bill __ R-help@r-project.org mailing list https://stat.ethz