Skip to main content

parse_formula_terms

Function parse_formula_terms 

Source
fn parse_formula_terms(expr: &Expr) -> Result<(String, Vec<String>), RError>
Expand description

Extract the response and predictor names from a formula expression.

For y ~ x, returns ("y", vec!["x"]). For y ~ x1 + x2, returns ("y", vec!["x1", "x2"]).