getvariables {plgraphics} | R Documentation |
Extracts the variables names (getvarnames
occurring in a formula, in raw form
(as get\_all\_vars
) or in transformed form
(as model.frame
does it).
getvariables(formula, data = NULL, transformed = TRUE, envir = parent.frame(), ...) getvarnames(formula, data = NULL, transformed = FALSE)
formula |
a model 'formula' or 'terms' object or an R object. |
data |
a data.frame, list or environment (or object coercible by 'as.data.frame' to a data.frame), containing the variables in 'formula'. Neither a matrix nor an array will be accepted. |
transformed |
logical. If |
envir |
environment in which the |
... |
further arguments such as
|
For getvarnames
: list of character vectors containing
varnames |
names of all variables ( |
xvar |
those from the right hand side of the formula |
yvar |
left hand side |
For getvariables
:
data.frame containing the extracted variables or simple terms.
Werner A. Stahel
data(d.blast) getvariables(log10(tremor)~log10(distance)*log10(charge), data=d.blast)