rws_write.environment | R Documentation |
Write the Data Frames in an Environment to a SQLite Database
## S3 method for class 'environment' rws_write( x, exists = TRUE, delete = FALSE, replace = FALSE, meta = TRUE, log = TRUE, commit = TRUE, strict = TRUE, x_name = substitute(x), silent = getOption("rws.silent", FALSE), conn, all = TRUE, unique = TRUE, ... )
x |
An environment. |
exists |
A flag specifying whether the table(s) must already exist. |
delete |
A flag specifying whether to delete existing rows before
inserting data. If |
replace |
A flag specifying whether to replace any existing rows whose inclusion would violate unique or primary key constraints. |
meta |
A flag specifying whether to preserve meta data. |
log |
A flag specifying whether to log the table operations. |
commit |
A flag specifying whether to commit the operations (calling with commit = FALSE can be useful for checking data). |
strict |
A flag specifying whether to error if x has extraneous columns or if exists = TRUE extraneous data frames. |
x_name |
A string of the name of the object. |
silent |
A flag specifying whether to suppress messages and warnings. |
conn |
A SQLiteConnection to a database. |
all |
A flag specifying whether all the existing tables in the data base must be represented. |
unique |
A flag specifying whether each table must represented by no more than one data frame. |
... |
Not used. |
Other rws_write:
rws_write.data.frame()
,
rws_write.list()
,
rws_write()
conn <- rws_connect() rws_list_tables(conn) atable <- readwritesqlite::rws_data another_table <- readwritesqlite::rws_data not_atable <- 1L rws_write(environment(), exists = FALSE, conn = conn) rws_list_tables(conn) rws_disconnect(conn)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.