powered by
Generic function that extracts names of variables ocurring in R objects.
variables(x, ...)# S4 method for rule variables(x, ...)# S4 method for list variables(x, ...)# S4 method for data.frame variables(x, ...)# S4 method for environment variables(x, ...)# S4 method for expressionset variables(x, as = c("vector", "matrix", "list"), dummy = FALSE, ...)
# S4 method for rule variables(x, ...)
# S4 method for list variables(x, ...)
# S4 method for data.frame variables(x, ...)
# S4 method for environment variables(x, ...)
# S4 method for expressionset variables(x, as = c("vector", "matrix", "list"), dummy = FALSE, ...)
An R object
Arguments to be passed to other methods.
how to return variables:
'vector' Return the uniqe vector of variables occurring in x.
'vector'
x
'matrix' Return a boolean matrix, each row representing a rule, each column representing a variable.
'matrix'
'list' Return a named list, each entry containing a character vector with variable names.
'list'
list
Also retrieve transient variables set with the := operator.
:=
variables(rule): Retrieve unique variable names
variables(rule)
variables(list): Alias to names.list
variables(list)
names.list
variables(data.frame): Alias to names.data.frame
variables(data.frame)
names.data.frame
variables(environment): Alias to ls
variables(environment)
ls
variables(expressionset): Variables occuring in x either as a single list, or per rule.
variables(expressionset)
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()
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)
Run the code above in your browser using DataLab