| variables | R Documentation |
Generic function that extracts names of variables ocurring in R objects.
variables(x, ...)
## S4 method for signature 'rule'
variables(x, ...)
## S4 method for signature 'list'
variables(x, ...)
## S4 method for signature 'data.frame'
variables(x, ...)
## S4 method for signature 'environment'
variables(x, ...)
## S4 method for signature 'expressionset'
variables(x, as = c("vector", "matrix", "list"), dummy = FALSE, ...)
x |
An R object |
... |
Arguments to be passed to other methods. |
as |
how to return variables:
|
dummy |
Also retrieve transient variables set with the |
variables(rule): Retrieve unique variable names
variables(list): Alias to names.list
variables(data.frame): Alias to names.data.frame
variables(environment): Alias to ls
variables(expressionset): Variables occuring in x either as a single list, or per rule.
Other expressionset-methods:
as.data.frame(),
as.data.frame,expressionset-method,
created(),
description(),
label(),
meta(),
names<-,rule,character-method,
origin(),
plot,validator-method,
summary(),
voptions()
Other expressionset-methods:
as.data.frame(),
as.data.frame,expressionset-method,
created(),
description(),
label(),
meta(),
names<-,rule,character-method,
origin(),
plot,validator-method,
summary(),
voptions()
v <- validator(
root = y := sqrt(x)
, average = mean(x) > 3
, sum = x + y == z
)
variables(v)
variables(v,dummy=TRUE)
variables(v,matrix=TRUE)
variables(v,matrix=TRUE,dummy=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.