extract_vars

0th

Percentile

Extract Variables from a Formula

Given a formula() f, returns all variables used on the left-hand side and right-hand side of the formula.

Usage
extract_vars(f)
Arguments
f

:: formula().

Value

(list()) with elements "lhs" and "rhs", both character().

Aliases
  • extract_vars
Examples
# NOT RUN {
extract_vars(Species ~ Sepal.Width + Sepal.Length)
extract_vars(Species ~ .)
# }
Documentation reproduced from package mlr3misc, version 0.1.0, License: LGPL-3

Community examples

Looks like there are no examples yet.