date.to.DOY: Date conversion

Description Usage Arguments Value Examples

Description

Convert dates from the DD/MM/YYYY format to day of the year (DOY)

Usage

1
date.to.DOY(dates, format = "dd/mm/yyyy")

Arguments

dates

Vector with dates to convert.

format

Format of the date (support DD/MM/YYYY MM/DD/YYYY and YYYY/MM/DD).

Value

Return a vector containing the corresponding DOY.

Examples

1
2
dates = c("01/01/2000", "03/03/2000", "03/03/1999")
date.to.DOY(dates=dates)

Example output

[1]  1 63 62

TDPanalysis documentation built on Feb. 28, 2020, 9:09 a.m.