decimalDate: decimalDate

Description Usage Arguments Examples

View source: R/populateDateColumns.r

Description

Create a decimal date or date/time from a vector.

Usage

1
decimalDate(rawData)

Arguments

rawData

vector of dates or dateTimes.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
dateTime <- c('1984-02-28 13:56',
              '1984-03-01 00:00',
              '1986-03-01 00:00',
              '1986-10-15 00:00')
decimalDate(dateTime)

dateTime <- c('1984-02-28', 
              '1984-03-01',
              '1986-03-01',
              '1986-10-15')
decimalDate(dateTime)

EGRET documentation built on Jan. 25, 2022, 5:08 p.m.