search for: concecutive

Displaying 3 results from an estimated 3 matches for "concecutive".

2011 Oct 06
1
Concecutive zeros and ones
Dear all, I haveĀ  a data series (might be vector or matrix) which is composed only from zeros and ones like the following example 0 0 0 1 1 0 1 0 0 1 1 1 1 0 0 0 I want to be able to return back the length of concecutive zeros and the length of concecutive ones. For that I want to have something like that returned: zeros= [3 1 2 3]; ones=[2 1 4]; How I can do that simply in R? I would like to thank you in advance for your help B.R Alex [[alternative HTML version deleted]]
2011 Oct 31
2
rle for non concecutive
Dear all, I would like to task you if you know a rle version that can work also in a non consecutive way too. B.R Alex [[alternative HTML version deleted]]
2012 Jul 31
1
TimeStamps to seconds
...econds(roofPart1$TimeStamps[1:5,1]) makeSeconds(roofPart1$TimeStamps[1:5,3])-makeSeconds(roofPart1$TimeStamps[1:5,2]) makeSeconds(roofPart1$TimeStamps[1:5,4])-makeSeconds(roofPart1$TimeStamps[1:5,3]) Do you know which are the functions for that? A) convert time stamps to seconds, B) substract the concecutive elements of the seconds matrix I would like to thank you in advance for your help B.R Alex [[alternative HTML version deleted]]