domo-tables | R Documentation |
Convenience functions for reading/writing Domo datasets
## S4 method for signature 'DomoConnection' dbCreateTable(conn, name, fields, ..., row.names = NULL, temporary = FALSE) ## S4 method for signature 'DomoConnection,character' dbWriteTable( conn, name, value, ..., overwrite = FALSE, append = FALSE, stream = TRUE ) ## S4 method for signature 'DomoConnection,character' dbAppendTable(conn, name, value, ..., stream = TRUE, row.names = NULL) ## S4 method for signature 'DomoConnection,character' dbReadTable(conn, name, ...) ## S4 method for signature 'DomoConnection,character' dbRemoveTable(conn, name, ...) ## S4 method for signature 'DomoConnection,character' dbExistsTable(conn, name, ...) ## S4 method for signature 'DomoConnection' dbListTables(conn, ...) ## S4 method for signature 'DomoConnection,character' dbListFields(conn, name, ...)
conn |
A DBIConnection object, as returned by
|
name |
|
fields |
Either a character vector or a data frame. A named character vector: Names are column names, values are types.
Names are escaped with A data frame: field types are generated using
|
... |
Other arguments used by individual methods. |
row.names |
Must be |
temporary |
Must be |
value |
a data.frame (or coercible to data.frame). |
overwrite |
Allow overwriting the destination dataset. Cannot be |
append |
Allow appending to the destination table. Cannot be |
stream |
If |
## Not run: library(DBI) con <- dbConnect(domo::domo()) dbListTables(con) dataset_id <- dbCreateTable(con, "mtcars", mtcars) dbWriteTable(con, dataset_id, mtcars, overwrite = TRUE) dbReadTable(con, dataset_id) dbExistsTable(con, dataset_id) dbDisconnect(con) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.