check_dbtable_variable: Check if a variable is available in a given table

View source: R/check_dbtable_variable.R

check_dbtable_variableR Documentation

Check if a variable is available in a given table

Description

Check if a variable is available in a given table

Usage

check_dbtable_variable(
  table,
  variable,
  schema = "public",
  channel,
  error = TRUE
)

Arguments

table

The name of the table

variable

A vector with the names of the columns

schema

The schema of the table. Defaults to public

channel

the open dplyr connection to the database.

error

Indicates the behaviour when a variable is missing. Gives an error when error = TRUE (default). Return FALSE otherwise.

Value

TRUE when all variables are present in the table.


INBO-Natura2000/n2khelper documentation built on April 5, 2022, 5:40 p.m.