insert_data: Insert local data into an existing remote table

Description Usage Arguments Value

View source: R/database_tools.R

Description

By default this function will check that the local and remote tables have matching data structures, and CRSs (if local is of class sf). Only new rows are inserted into the remote source.

Usage

1
insert_data(local, remote, verbose = TRUE, ignore.structure = FALSE)

Arguments

local

A local dataframe, tibble or tbl_sf

remote

A tbl_dbi connection

verbose

A logical indicating if the number of inserted rows will be printed as a message

ignore.structure

A logical inidicating if data should be inserted even if the structures do not match USE WITH CAUTION

Value

The updated remote source is returned invisibly to allow continued piping


jpshanno/jpshanno documentation built on Nov. 26, 2019, 7:29 p.m.