getVars {editrules} | R Documentation |
get names of variables in a set of edits
Description
get names of variables in a set of edits
getr variable names
get variable names
Usage
getVars(E, ...)
## S3 method for class 'editset'
getVars(E, type = c("all", "num", "cat", "mix", "dummy"), ...)
## S3 method for class ''NULL''
getVars(E, ...)
Arguments
E |
|
... |
Arguments to be passed to or from other methods |
type |
(editset- or list only) select which variables to return. |
Value
character
vector with the names of the variables.
See Also
Examples
E <- editmatrix(c( "x+3*y == 2*z"
, "x > 2")
)
getVars(E)
E <- editarray(expression(
gender %in% c('male','female'),
pregnant %in% c(TRUE, FALSE),
if( gender == 'male' ) pregnant == FALSE
)
)
getVars(E)
[Package editrules version 2.9.5 Index]