date.to.DOY {TDPanalysis}R Documentation

Date conversion

Description

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

Usage

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

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

[Package TDPanalysis version 1.0 Index]