Learn R Programming

editrules (version 2.2-0)

getVars: get names of variables in a set of edits

Description

get names of variables in a set of edits

Usage

getVars(E, ...)

Arguments

Value

character vector with the names of the variables.

See Also

getA, getb, getOps

Examples

Run this code
E <- editmatrix(c( "x+3*y == 2*z"
                 , "x > 2")
                 )
getVars(E)

E <- editarray(c(
    "gender \%in\% c('male','female')",
    "pregnant \%in\% c(TRUE, FALSE)",
    "if( gender == 'male' ) pregnant == FALSE"
    )
)

getVars(E)

Run the code above in your browser using DataLab