powered by
Mathematical expression
mathexpr(expr)
a Distribution object for simulator
User defined mathematial expression. he expression will be processed by muparser library which offers a wide variety of operators. Visit muparser website (https://beltoforion.de/en/muparser/features.php) to see full list of available operators.
transitions <- list("S->I"="beta*S/N") transitions <- denim_dsl({S->I=beta*S/N}) # definition for parameters in the expression required params <- c(N = 1000, beta = 0.3)
Run the code above in your browser using DataLab