Last data update: 2014.03.03

R: Test for continuous (non NA interrupted) series
isSeriesContinuousR Documentation

Test for continuous (non NA interrupted) series

Description

isSeriesContinuous test whether a vector contains one non interrupted sequence of values (i.e. no NaN in between).

Usage

isSeriesContinuous(x)

Arguments

x

numeric vector: series to test

Details

The function returns TRUE when the vector contains one (and only one) non NA interupted sequence of values. E.g. it would also return TRUE for a vector that contains a sequence of NAs at the beginning and/or end of the vector.

Value

logical: whether the series contains gaps or not.

Author(s)

Jannis v. Buttlar

Results