R/jul2date1.R

Defines functions jul2date1

Documented in jul2date1

# Converts Julian day of year (day of year, year)   
# into a string date "DD.MM.YYYY". If year is missing a non-leap year
# is assumed.
jul2date1 <- function(d,y) {
	if(missing(y)) y <- 2001
	
	res <- .C("Cjul2date1",doy=as.integer(d),year=as.integer(y),date="DD.MM.YYYY")

	return(res$date)
}

Try the pheno package in your browser

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

pheno documentation built on May 13, 2022, 1:05 a.m.