has_vars: Check if variables exist in object

View source: R/vars.R

has_varsR Documentation

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

Value

TRUE/FALSE


thackl/gggenomes documentation built on Feb. 2, 2025, 8:02 a.m.