createTimestamp: Create a time stamp

Description Usage Arguments Details Author(s) Examples

View source: R/createTimestamp.r View source: R/functions.r

Description

It creates a new timestam colume using the date and time output of EddyPro. It then converts the column to a POSIXct class and extracts to separate columns the year, month, day and hour. It requires the lubridate package.

Usage

1

Arguments

data

The data frame

timestamp

A character giving the name of the timestamp column

Details

For the function to work properly, two columns need to exist. The data and time, each one with a specific format. The date column should be formated as YYYY-MM-DD and the time as HH:MM. The functions can be used with an existing timestamp column too and that should be formated as YYYY-MM-DD HH:MM:SS.

Author(s)

Georgios Xenakis

Examples

1
2
3
4
5
##Load the data
data(fluxes)

## Create the time stamp
fluxes=createTimestamp(fluxes)

Example output



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