Write data.frames to DB addressing pitfalls
1 | write_data_safely(dbconn, tblname, df, key, safe_columns, blacklist)
|
dbconn |
PostgreSQLConnection. The database connection. |
tblname |
character. The table name to write the data into. |
df |
data.frame. The data to write. |
key |
character. The identifier column name. |
safe_columns |
logical. Whether an error should be thrown if the columns returned are different than what is in the column cache. |
blacklist |
list. A list of values to not cache. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.