deleteFlatLines: Deletes values in a obs dataframe column that have a flatline

View source: R/deleteFlatlines.R

deleteFlatLinesR Documentation

Deletes values in a obs dataframe column that have a flatline

Description

Deletes values in a obs dataframe column that have a flatline

Usage

deleteFlatLines(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

deleteFlatLines(BadLake7376, colnum = 3)


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