Learn R Programming

JBTools (version 0.7.2.9)

isSeriesContinuous: 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

Value

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.