Description Usage Arguments Value Examples
Write, append or overwrite a data frame to a database table
1 2 3 4 5 6 7 8 9 10 11 12 |
conn |
A MonetDB.R database connection, created using |
name |
The name of the database table. |
value |
The dataframe that needs to be stored in the table |
overwrite |
Overwrite the whole table with dataframe. default |
append |
Append dataframe to table |
csvdump |
Dump dataframe to a temporary CSV file, and then import that CSV file. Can be used for performance reasons. Default |
transaction |
Wrap operation in transaction. Default: |
temporary |
Create a temporary table instead of a 'real' table Default: |
TRUE if the writetable command was successful
1 2 3 4 5 | dbWriteTable(conn, "mtcars", mtcars[1:5,])
dbWriteTable(conn, "mtcars", mtcars[5:10,], overwrite=T)
dbWriteTable(conn, "mtcars", mtcars[11:15,], append=T)
dbWriteTable(conn, "mtcars", mtcars[11:15,], append=T, csvdump=T)
dbWriteTable(conn, "iris", iris, temporary=T)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.