R/date2doy.R

date2doy <- 
function(date) {
	#Calculates the Julian Day out of the integer date (YYMMDD)
	tmp <- 0
	doy <- .C("dateToDoy", as.integer(date), doy=as.integer(tmp), PACKAGE="phenex")$doy
	return(doy)
}

Try the phenex package in your browser

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

phenex documentation built on May 1, 2019, 10:56 p.m.