add_date: Add date/time column to data.frame

Description Usage Arguments Details Value Author(s) Examples

View source: R/add_date.R

Description

Takes the ‘Year', 'Month', 'Day' and, if available, 'Hour', 'Minute' and 'Second' columns of a data.frame and uses them to produce a 'Date' column that uses R’s standard data/time format.

Usage

1

Arguments

df

Data frame containing columns 'Year', 'Month', 'Day' and - optionally - 'Hour', 'Minute' and/or 'Second'

Details

Converts YEARMODA to R date

Value

data.frame consisting of the df input and a new column 'Date'

Author(s)

Eike Luedeling

Examples

1
2
3
4

chillR documentation built on Jan. 11, 2022, 5:07 p.m.