- 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. Re: detecting repeated values in a vector (score: 1)
- Author: Patrick Burns <pburns@pburns.seanet.com>
- Date: Thu, 04 May 2006 21:46:15 +0100
- Sounds like a job for 'rle'. Patrick Burns patrick@burns-stat.com +44 (0)20 8525 0696 http://www.burns-stat.com (home of S Poetry and "A Guide for the Unwilling S User") Hello, I'm trying to detect r
- /archives/html/s-news/2006-05/msg00019.html (8,221 bytes)
This search system is powered by
Namazu