Learn R Programming

FREddyPro (version 1.0)

continuity: Check timeseries continuity

Description

Function based on the timestamp to identify if there is a discontinuity in the timeseries

Usage

continuity(data, timestamp = NULL, timediff = 30)

Arguments

data
The data frame
timestamp
A string giving the name of the timestamp.
timediff

Value

Returns a data frame

Details

If no timestamp is given then the function assumes the standard EddyPro output (which originaly does not include a timestamp) and uses internally the createTimestamp function to create one.

Examples

Run this code
## Load the data
data(fluxes)

## Clean fluxes
fluxes=cleanFluxes(fluxes,sdCor=TRUE,sdTimes=3,timesList=3,distCor=TRUE,
                   thresholdList=list(H=c(-100,1000),LE=c(-100,1000)))

## Remove some line as an example
fluxes=fluxes[-c(832,833,834,835,840,953),]

## Create timestamp from date and time
continuity(fluxes)

Run the code above in your browser using DataLab