R/setPhy.R

# Generic function for setting up a leaf physiology object.
setPhy <- function(leafmodel, leafpars=list()){

	l <- list()
		
	# Store leafmodel
	l$leaffunction <- get(leafmodel)  # function
	l$leafmodel <- leafmodel          # name of function
	
	# Store leaf parameters.
	l$leafpars <- leafpars
	
	class(l) <- "ypphy"

return(l)
}

Try the YplantQMC package in your browser

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

YplantQMC documentation built on May 2, 2019, 5:50 p.m.