Description Usage Arguments Value Examples
View source: R/parse_equation.R
Create and parse a model equation
1 | parse_equation(equation, envir)
|
equation |
A text defining the equation. |
envir |
A named list with the indexes for the array. |
An expression with the code to evaluate the equation.
1 2 3 4 5 6 7 8 | equation <- list(
equation = "y[c] = x[c]^2",
indexes = "c in C"
)
C <- c("sec1", "sec2", "sec3")
parse_equation(equation, envir = globalenv())
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.