Skip to content
Prev 345405 / 398503 Next

Variance of multiple non-contiguous time periods?

On 04/11/14 09:11, Jim Lemon wrote:
I am stumped for a way of automating this process though. Each line of 
log data looks like this;

2406	55.4	(-11.2, 1.0, -0.9)	(-4.1, 1.0, 0.0)	7.077912	0.9203392	(0.0, 
0.7, -0.1, 0.7)	8.129684	89.41537	-8.212769	(0.0, 0.7, -0.1, 0.7) 
8.129684	89.41537	351.7872	1	0	0	False	0.15	3	37.76761	True	False	0 
transition 1

Where the last variable defines which transition is currently active. 
However to separate these data into 'chunks' would involve making a 
comparison between each line of data & the preceding line of data to 
determine whether it is part of the same contiguous 'chunk'. Is this 
something that would be better achieved using external preprocessing 
written in a language I am more familiar with, as I haven't the foggiest 
how I would approach this within R?

Regards,
CJ Davies