Check if fields present in table

check_fields_exist(con, tbl, fields)

Arguments

con

connexion object returned by DBI::dbConnect()

tbl

a character name of the table

fields

a vector of column names in the specified table

Examples

if (FALSE) { # \dontrun{
     check_fields_exist(con, "species", species_id = "test")
} # }