Variable$exists

Variable$exists() → bool

Checks to see whether the variable exists

Returns:

bool

Examples:

table <- redivis::organization("Demo")$dataset("iris_species")$table("iris")

variable <- table$variable("sepalLengthCm")
variable$exists() # -> TRUE

table$variable("some_nonexistent_var") # -> FALSE

Last updated