Learn R Programming

sirad (version 2.3-3)

dayOfYear: Convert 'Date' to number of day in a year

Description

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

Usage

dayOfYear(dat)

Arguments

dat
Date in class 'Date'.

Value

Numeric number of day in a year.

Examples

Run this code

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

Run the code above in your browser using DataLab