path_formula: Turn a path object into an expression

View source: R/tree.R

path_formulaR Documentation

Turn a path object into an expression

Description

Turn a path object into an expression

Usage

path_formula(x)

Arguments

x

a list.

The input of this function is a list with 4 values.

  • type character, must be "conditional" or "set".

  • op character. if type == "conditional" must be "more", "more-equal", "less", or "less-equal". if type == "set" must be "in" on ⁠not-in⁠.

  • col character.

  • val if type == "conditional" and vals if type == "set". Can be character or numeric. @keywords internal


tidypredict documentation built on Nov. 29, 2025, 9:06 a.m.