Description Usage Arguments Details Author(s) Examples
View source: R/functions.r View source: R/createTimestamp.r
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.
1 |
data |
The data frame |
timestamp |
A character giving the name of the timestamp column |
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.
Georgios Xenakis
1 2 3 4 5 | ##Load the data
data(fluxes)
## Create the time stamp
fluxes=createTimestamp(fluxes)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.