Learn R Programming

readsdr (version 0.3.0)

sd_pulse_v: 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)

Value

A number

Arguments

time

A number

startPulse

A number

duration

A number

Examples

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

Run the code above in your browser using DataLab