tests/testthat/pkg/inst/odin/discretedelay.R

initial(y) <- 1
update(y) <- y + yprev
yprev <- delay(y, 1)

Try the odin package in your browser

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

odin documentation built on April 28, 2022, 9:05 a.m.