Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


TDPanalysis (version 1.0)

date.to.DOY: 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

Run this code
# NOT RUN {
dates = c("01/01/2000", "03/03/2000", "03/03/1999")
date.to.DOY(dates=dates)
# }

Run the code above in your browser using DataLab