findFlatLines: Finds values in a obs dataframe column that have a flatline

View source: R/findFlatlines.R

findFlatLinesR Documentation

Finds values in a obs dataframe column that have a flatline

Description

Finds values in a obs dataframe column that have a flatline

Usage

findFlatLines(obs, colnum = 1, window_size = 5, logfile = "")

Arguments

obs

Required. A CRHMr obs data frame.

colnum

Optional. The number of the column to test for spikes, not including the datetime.

window_size

Optional. The min number of values within the vector required to be the same before is flagged as a flat line.

logfile

Optional. Name of the file to be used for logging the action. Normally not used.

Value

obs dataframe with col flat lines replaced with NANs

Author(s)

Alex Cebulski

Examples

findFlatLines(BadLake7376, colnum = 3)


CentreForHydrology/CRHMr documentation built on April 6, 2024, 5:27 p.m.