Parses and evaluates expr in a restricted environment
containing only the columns of df (parent: baseenv()).
This isolates evaluation from the global environment, reducing
scope for unintended side effects.
safe_eval_expr(df, expr)Result of evaluating expr, or NULL on failure.
Data frame providing column names as variables.
Character. Expression to evaluate
(e.g., "BM > 1 & tmrsize > 19").
evaluate_comparison for the single-comparison
operator-dispatch alternative that avoids eval(parse()).