db_drop_table_ifexist: Drop table if exist

Description Usage Arguments Examples

Description

The default function db_drop_table in the dplyr package returns an error if the table already exist. This creates a lot of errors in the data manipulation pipe. db_drop_table_ifexist check if the table exist and drop the table if and only if it exist.

Usage

1

Arguments

db

name of the database

table

name of the table

Examples

1
2
3
4
db_drop_table_ifexist(
db = database_signauxfaibles,
table = "table_periods"
)

SGMAP-AGD/opensignauxfaibles documentation built on May 15, 2019, 1:26 p.m.