Learn R Programming

FREddyPro (version 1.0)

buildTimestamp: Build a timestamp

Description

Use a day of year to build a timestamp column with the format used by EddyPro

Usage

buildTimestamp(data, doy)

Arguments

data
The data frame to use
doy
A string with the name for the day of year column

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
fluxes=createTimestamp(fluxes)

## Now fill the gap timestmaps with NA's
fluxes=fillTimestamp(fluxes,flux=TRUE)

Run the code above in your browser using DataLab