inst/tests/automaticR/TimeMapExamples.R

# A function that is valid in a time interval bounded by tstart and tend 
  

 tm_1 <- TimeMap(
	map = function(t){
				c(
					1+sin(t),
					2+sin(2*t)
				)
			},
	starttime = 1,
	endtime = 10
)
# a vector of times, a vector of scalar fractions per time step and a vector lag 
  

 tm_2 <- TimeMap(
	times = 0:99,
	data = C14Atm_NH[1:100,2],
	lag = c(1.1,1.2)
)

Try the SoilR package in your browser

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

SoilR documentation built on Oct. 13, 2023, 5:06 p.m.