R/dayofyear.R

Defines functions dayofyear

Documented in dayofyear

## Makes julian days from month and day number
## m: month number from 1 to 12
## d: day number within the month
## y: year
dayofyear <- function(m, d, y=1960){
as.numeric(mdy.date(m, d, y))-as.numeric(mdy.date(1,1,y))+1
}

Try the birdring package in your browser

Any scripts or data that you put into this service are public.

birdring documentation built on Oct. 7, 2023, 5:07 p.m.