View source: R/findFlatlines.R
| findFlatLines | R Documentation | 
Finds values in a obs dataframe column that have a flatline
findFlatLines(obs, colnum = 1, window_size = 5, logfile = "")
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.  | 
obs dataframe with col flat lines replaced with NANs
Alex Cebulski
findFlatLines(BadLake7376, colnum = 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.