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


gggenomes documentation built on Nov. 14, 2025, 5:07 p.m.