Hi Bill, You get cyclelemgth = 110. If this is true, i.e if every 110 points of data represent an entire cycle then everything is all right, but are you sure this is true? Think what happens if the true cycle length was 110.5 data points.
Regards, Moshe. --- Bill Simpson <[EMAIL PROTECTED]> wrote: > 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 cyclelength > y[i,j]=x[i*j] > next > next > > Once that's done I can average over rows > > Thanks for any suggestions > Bill > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, > reproducible code. > ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.