Learn R Programming

gggenomes (version 1.0.1)

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)

Value

TRUE/FALSE

Arguments

x

object

vars

variables to test

any

if TRUE not all but at least one variable has to exists