View source: R/formula_engine.R
| evaluate_custom_formula | R Documentation |
Evaluates a validated AST expression in a controlled, isolated environment containing only the raster/numeric bands, supplied parameters, and safe mathematical operators.
evaluate_custom_formula(
parsed_expr,
band_layers,
params = list(),
denominator_tolerance = 1e-06
)
parsed_expr |
Parsed language expression. |
band_layers |
Named list of |
params |
Named list of numeric parameter constants. |
denominator_tolerance |
Tolerance for near-zero denominators. Defaults to |
A SpatRaster or numeric result.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.