Skip to contents

All functions

IM_contains()
Check whether needle (value) is in haystack (vector or string)
IM_filter()
Filter vector based on logical function
IM_length()
Length of vector or string
as.data.frame(<sdbuildR_sim>)
Create dataframe of simulation results
as.data.frame(<sdbuildR_xmile>)
Convert stock-and-flow model to dataframe
build()
Create, modify or remove variables
compare_sim()
Compare two simulations
compute_delayN()
Compute the delayN accumulator
compute_smoothN()
Compute the smoothN accumulator
convert_u()
Convert unit in equation
debugger()
Debug stock-and-flow model
delay()
Retrieve a single value from the past
delayN()
Delay of order N
drop_u()
Drop unit in equation
expit()
Expit function
get_build_code()
Generate code to build stock-and-flow model
get_regex_time_units()
Get regular expressions for time units in Julia
get_regex_units()
Get regular expressions for units in Julia
get_units()
View all standard units
`%REM%`
Remainder operator
header()
Modify header of stock-and-flow model
indexof()
Find index of needle (value) in haystack (vector)
insightmaker_to_sfm()
Import Insight Maker model
logistic()
Logistic function
logit()
Logit function
macro()
Create, modify or remove a global variable or function
mod()
Modulus
model_units()
Create, modify or remove custom units
nonnegative()
Safely check whether x is less than zero
past()
Retrieve an interval of values from the past
plot(<sdbuildR_sim>)
Plot timeseries of simulation
plot(<sdbuildR_xmile>)
Plot stock-and-flow diagram
pulse()
Create pulse function
ramp()
Create ramp function
rbool()
Generate random logical value
rdist()
Generate random number from custom distribution
rem()
Remainder
round_IM()
Convert Insight Maker's Round() function to R
saveat_func()
Function to save dataframe at specific times
seasonal()
Create a seasonal wave function
setup_delayN()
Setup a delayN accumulator
setup_smoothN()
Setup a smoothN accumulator
shuffle()
Shuffle vector
sim_specs()
Modify simulation specifications
simulate()
Simulate stock-and-flow model
smoothN()
Smoothing of order N
step()
Create step function
substr_i()
Extract characters from string by index
summary(<sdbuildR_xmile>)
Print overview of stock-and-flow model
u()
Specify unit in equations
unit_prefixes()
Show unit prefixes
url_to_IM()
Extract Insight Maker model XML string from URL
use_julia()
Set up Julia environment for sdbuildR
xmile()
Create a new stock-and-flow model