goodgroups {heR.Misc}R Documentation

Identify Contiguous Groups of Non-Missing Data

Description

Return a factor that can be used to split a vector into groups of continguous non-NA values.

Usage

goodgroups(x)

Arguments

x a vector of data

Details

Returns NA if all passed values are NA

Value

A factor designating groups that have contiguous non-missing values

Author(s)

Neil Klepeis

See Also

This function is used by the areaplot function to fill in the area under a curve when some data are missing.


[Package heR.Misc version 0.0.4 Index]