get.vars-methods {formula.tools}R Documentation

Get variable (names) from various R objects

Description

get.vars extracts variable names from various R objects such as formulas, expressions, calls, symbols, etc. It is very similar to all.vars except that all symbols, etc. are interpolated to the names of variables.

Methods

x = "call", data = "ANY"
from calls
x = "expression", data = "missing"
from expressions
x = "formula", data = "ANY"
from formulas
x = "name", data = "ANY"
from names and symbols
x = "ANY", data = "ANY"
from all other objects, returns NULL. Only the above classes can contain variable names.


[Package formula.tools version 0.14.1 Index]