inst/tests/runit.test.TimeMap.R

#
# vim:set ff=unix expandtab ts=2 sw=2:
test.TimeMap=function(){
   tstart=0
   tend=0
   f=function(t){2*t}

   obj=new(Class="TimeMap",tstart,tend,f) #dircet method
   obj2=TimeMap.new(tstart,tend,f) #another initializer
   t=1:20
   inp=seq(1.05,2,0.05)
   tframe=data.frame(times=t,inputrates=inp)
   obj3=TimeMap.from.Dataframe(tframe)#a third one
   checkEquals(c("t_min"=1,"t_max"=20),getTimeRange(obj3))
}

Try the SoilR package in your browser

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

SoilR documentation built on May 29, 2017, 10:57 a.m.