R/date2jul1.R

Defines functions date2jul1

Documented in date2jul1

# Converts a string date "DD.MM.YYYY" into a Julian date (doy,year)
date2jul1 <- function(d) {
	
	res <- .C("Cdate2jul1",date=as.character(d),doy=integer(1),year=integer(1))

	return(list(doy=res$doy, year=res$year))
}

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.