
Create a historical table from input data
create_table(.data, conn = NULL, db_table, ...)
Invisibly returns the table as it looks on the destination (or locally if conn
is NULL
).
(data.frame(1)
, tibble(1)
, data.table(1)
, or tbl_dbi(1)
)
Data object.
(DBIConnection(1)
)
Connection object.
(id-like object(1)
)
A table specification (coercible by id()
).
Other arguments passed to DBI::dbCreateTable()
.
if (FALSE) { # requireNamespace("RSQLite", quietly = TRUE)
conn <- get_connection()
create_table(mtcars, conn = conn, db_table = "mtcars")
close_connection(conn)
}
Run the code above in your browser using DataLab