sd_pulse_v: Replicate the behaviour of the PULSE function from Vensim

View source: R/if_else_builtins.R

sd_pulse_vR Documentation

Replicate the behaviour of the PULSE function from Vensim

Description

Replicate the behaviour of the PULSE function from Vensim

Usage

sd_pulse_v(time, startPulse, duration)

Arguments

time

A number

startPulse

A number

duration

A number

Value

A number

Examples

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

readsdr documentation built on May 29, 2024, 2:45 a.m.