contiguous.zoo {StreamMetabolism} | R Documentation |
find continuous non NA portions of zoo time series data
contiguous.zoo(x)
x |
zoo time series object whatever indexes you want |
if you want to just find the contiguous portions of just one signal and not the interaction between two just duplicate the signal contiguous.zoo(data.frame(x, coredata(x))) should give you what you want
data frame constiting of
start |
start index |
end |
end index |
lengths |
length of record |
value |
logical stating whether a continuous string of non-NA values |
Gabor Grothendieck and Stephen A Sefick Jr.