Learn R Programming

StreamMetabolism (version 1.1.3)

contiguous.zoo: contiguous.zoo

Description

find continuous non NA portions of zoo time series data

Usage

contiguous.zoo(x)

Value

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

Arguments

x

zoo time series object whatever indexes you want

Author

Gabor Grothendieck and Stephen A Sefick Jr.

Details

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