add_table: add_table

Description Usage Arguments Examples

Description

Add a table to a dbR6 object

Usage

1
my_object$add_table(from, to, overwrite, append fun, index_row_names)

Arguments

...

Additional parameters passed to RSQLite::dbWriteTable

from

Input table

to

Name of the table in database

overwrite

Overwrite table if already exists? Default FALSE

append

Append rows if the tablealready exists? Default FALSE

fun

Function to apply to the table before writing it

index_row_names

index row names? Default TRUE

Examples

1
2
3
4
5
{
data(mtcars2)
my_db <- dbR6$new()
my_db$add_table(mtcars, "mtcars_db")
}

leandroroser/dbR6 documentation built on May 20, 2019, 5:57 p.m.