sd_pulse_v {readsdr}R 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)

[Package readsdr version 0.3.0 Index]