Learn R Programming

replyr (version 0.3.01)

replyr_copy_to: Copy data to remote service.

Description

Copy data to remote service.

Usage

replyr_copy_to(dest, df, name = deparse(substitute(df)), ...,
  rowNumberColumn = NULL)

Arguments

dest

remote data source

df

local data frame

name

name for new remote table

...

force later values to be bound by name

rowNumberColumn

if not null name to add row numbers to

Value

remote handle

Examples

Run this code


if (requireNamespace("RSQLite", quietly = TRUE)) {
  my_db <- dplyr::src_sqlite(":memory:", create = TRUE)
  d <- replyr_copy_to(my_db, data.frame(x=c(1,2)), 'd')
  print(d)
}

Run the code above in your browser using DataLab