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

Description Usage Arguments Value

Description

Check if a variable is available in a given table

Usage

1
2
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/n2khelper documentation built on May 18, 2019, 4:49 a.m.