Convert 'Date' to number of day in a year

Share:

Description

Function gives a day number of the year (julian day of the year) based on the date in class 'Date'.

Usage

1
dayOfYear(dat)

Arguments

dat

Date in class 'Date'.

Value

Numeric number of day in a year.

Author(s)

Jedrzej S. Bojanowski

Examples

1
dayOfYear(as.Date("2009-01-11"))