write.mdb | R Documentation |
Writes data.table (or anything coercible to one) to MonetDB. If data.table has key will create an index. Additional indices may be specified. If MonetDB file already exists then will try to append to it (assuming same schema). Stored table will have altered column names (changed to lowercase, all non word characters replaced by underscores, and a col_ prefix added) to maximize compatibility with SQL.
The written database can be later accessed using mdb(fn, expression) or mdb(con, expression) where con is the output of this function (write.mdb) or con = mdb(fn).
write.mdb( dt, fn = tempdir(), name = "data_table", max.varchar = 256, index_on = NULL, overwrite = TRUE, verbose = TRUE )
dt |
(keyed) data.table |
fn |
path to write to |
DBI handle to MDB ! @param index_on list of character vectors specifying additional keys (in addition to key(dt))
Marcin Imielinski
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.