sd_pulse_v: Replicate the behaviour of the PULSE function from Vensim

Description Usage Arguments Value Examples

View source: R/if_else_builtins.R

Description

Replicate the behaviour of the PULSE function from Vensim

Usage

1
sd_pulse_v(time, startPulse, duration)

Arguments

time

A number

startPulse

A number

duration

A number

Value

A number

Examples

1
2
timestep <- function() 0.25 # replicates timestep() from deSolve
sd_pulse_v(1, 1, 2)

readsdr documentation built on Jan. 13, 2021, 11:08 a.m.