DecimalDate: DecimalDate

View source: R/maths.R

DecimalDateR Documentation

DecimalDate

Description

DecimalDate

Usage

DecimalDate(x, by)

Arguments

x

Date

by

The period used in the conversion. Either "month" or "year".

Details

Turns a date into a integer, relative to an origin of 1900-01-01. Ignores hours, minutes and seconds.

Examples

DecimalDate("2000/01/01", by = "year")
DecimalDate("2000/01/01", by = "month")
DecimalDate("2000/02/01", by = "month")
DecimalDate("2000/06/16", by = "month")

Displayr/flipTime documentation built on Feb. 26, 2024, 12:46 a.m.