Learn R Programming

birdring (version 1.6)

dayofyear: The day of the year

Description

Gives the day of the year, i.e. the number of days since the 31 December of the previous year.

Usage

dayofyear(m, d, y = 1960)

Value

numeric value, day of the year

Arguments

m

month (integer between 1 and 12)

d

day (integer between 1 and 31)

y

year (integer such as 2013)

Author

Fraenzi Korner-Nievergelt

References

no references

See Also

mdy.date

Examples

Run this code
dayofyear(3,1,2013)
dayofyear(3,1,2012)

Run the code above in your browser using DataLab