R: Easily Build, Simulate, and Visualise Stock-and-Flow Models

# Easily Build, Simulate, and Visualise Stock-and-Flow Models

## Documentation for package ‘sdbuildR’ version 1.0.8

- DESCRIPTION file
- Package NEWS
- Package README

## Help Pages

%REM% | Remainder and modulus
as.data.frame.sdbuildR_sim | Create data frame of simulation results
as.data.frame.sdbuildR_xmile | Convert stock-and-flow model to data frame
build | Create, modify or remove variables
clean_name | Clean variable name(s)
contains_IM | Check if needle is in haystack
convert_u | Convert unit in equation
debugger | Debug stock-and-flow model
drop_u | Drop unit in equation
ensemble | Run ensemble simulations
expit | Expit function
export_plot | Save plot to a file
find_dependencies | Find dependencies
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
has_internet | Check if user has internet
header | Modify header of stock-and-flow model
indexof | Find index of needle in haystack
insightmaker_to_sfm | Import Insight Maker model
install_julia_env | Install, update, or remove Julia environment
julia_status | Check status of Julia installation and environment
length_IM | Length of vector or string
logistic | Logistic function
logit | Logit function
macro | Create, modify or remove a global variable or function
mod | Remainder and modulus
model_units | Create, modify or remove custom units
nonnegative | Safely check whether x is less than zero
plot.sdbuildR_ensemble | Plot timeseries of ensemble
plot.sdbuildR_sim | Plot timeseries of simulation
plot.sdbuildR_xmile | Plot stock-and-flow diagram
print.summary.sdbuildR_xmile | Print method for summary.sdbuildR_xmile
pulse | Create pulse function
ramp | Create ramp function
rbool | Generate random logical value
rdist | Generate random number from custom distribution
rem | Remainder and modulus
round_IM | Round Half-Up (as in Insight Maker)
saveat_func | Internal function to save data frame at specific times
seasonal | Create a seasonal wave function
sigmoid | Logistic function
simulate | Simulate stock-and-flow model
sim_specs | Modify simulation specifications
solvers | Check or translate between deSolve and Julia DifferentialEquations solvers
step | Create step function
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 from URL
use_julia | Start Julia and activate environment
use_threads | Set up threaded ensemble simulations
xmile | Create a new stock-and-flow model