has_vars: Check if variables exist in object
Description
Returns TRUE if all variables exists. If any=TRUE
returns TRUE if at least
one variable exists.
Usage
has_vars(x, vars, any = FALSE)
Arguments
- x
object
- vars
variables to test
- any
if TRUE not all but at least one variable has to exists