View source: R/formula_engine.R
| parse_and_validate_formula | R Documentation |
Recursively traverses the parsed formula AST to verify that only permitted mathematical operators, whitelisted mathematical functions, known spectral bands, and user-supplied parameters are present.
parse_and_validate_formula(
formula_str,
available_bands = character(0),
param_names = character(0)
)
formula_str |
Character string containing the mathematical formula. |
available_bands |
Character vector of valid spectral band identifiers. |
param_names |
Character vector of valid parameter names. |
A list containing:
parsed_expr |
The parsed R expression object. |
used_bands |
Character vector of band names referenced in the formula. |
used_params |
Character vector of parameter names referenced in the formula. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.