Re: [R] Help finding the mode and maximum for a specified 'window' of time series data

2008-06-15 Thread Moshe Olshansky
the mode and maximum for a specified 'window' > of time series data > To: "Staples, Angela Dawn" <[EMAIL PROTECTED]> > Cc: "r-help@R-project.org" > Received: Monday, 16 June, 2008, 4:05 AM > This will give you an idea of how you mi

Re: [R] Help finding the mode and maximum for a specified 'window' of time series data

2008-06-15 Thread jim holtman
This will give you an idea of how you might want to approach the problem: > sample <-cbind((1:20)*.25,c(1,1,1,2,2,3,3,3,4,5,6,4,4,3,3,3,2,1,1,1)) > sample [,1] [,2] [1,] 0.251 [2,] 0.501 [3,] 0.751 [4,] 1.002 [5,] 1.252 [6,] 1.503 [7,] 1.753 [8,] 2.003

[R] Help finding the mode and maximum for a specified 'window' of time series data

2008-06-15 Thread Staples, Angela Dawn
I am relatively new to R, so apologize up front for my long question, particularly if there is too much or too little information. I have a large time series data set where each subject's behavior was originally coded on .25s intervals for 3min task. I am trying to determine if the findings are di