flag_runs: Flag Runs of Equal Values

Description Usage Arguments Details Value

Description

Identify and flag values of runs with repeating values in a vector.

Usage

1
flag_runs(x, length = 2, ignore = NULL)

Arguments

x

A numeric atomic type with NULL dimensions.

length

A numeric value.

ignore

Details

NA values are omitted before evaluation of runs. Thus NAs do not interrupt runs. Flagging is done according to the 0 - 2 quality control flag scheme.

This is a modified version of the function of the same name in the R package "openeddy". Primary modifications: added support for ignoring runs of value 0.

Value

An integer vector with the same length as x. Its varnames and units attributes are set to name_out and "-" values, respectively.


grahamstewart12/tidyflux documentation built on June 4, 2019, 7:44 a.m.