Search String: Display: Description: Sort:

Results:

References: [ +from:caitlin@cbr.washington.edu: 2 ]

Total 2 documents matching your query.

1. detecting repeated values in a vector (score: 1)
Author: Caitlin Burgess <caitlin@cbr.washington.edu>
Date: Thu, 4 May 2006 13:27:54 -0700 (PDT)
I'm trying to detect repeated values of length k in a vector of measurements (a stuck sensor). I was thinking of something like for (val in 1:(length(vector)-k+1)) { if ( vector[val:(val+k)] == rep(
/archives/html/s-news/2006-05/msg00018.html (6,889 bytes)

2. detecting repeated values in a vector (summary of solutions) (score: 1)
Author: Caitlin Burgess <caitlin@cbr.washington.edu>
Date: Fri, 5 May 2006 11:07:04 -0700 (PDT)
Thank you very much to all of you who replied to my question. From the replies I learned about the functions rle() and duplicated(). Thanks very much to those who included code to solve the problems
/archives/html/s-news/2006-05/msg00023.html (8,178 bytes)


This search system is powered by Namazu