continuity: Check timeseries continuity

Description Usage Arguments Details Value Author(s) Examples

View source: R/continuity.r

Description

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

Usage

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

Arguments

data

The data frame

timestamp

A string giving the name of the timestamp.

timediff

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.

Value

Returns a data frame

Author(s)

Georgios Xenakis

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## 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)

Example output

[1] Discontinuity in 3 instances
[1] 2014-06-14 03:30:00 UTC 2014-06-14 06:00:00 UTC 2014-06-16 14:30:00 UTC

FREddyPro documentation built on May 29, 2017, 7:22 p.m.