A function to write dataframes to PostgreSQL database.
1 2 | qrc_insert(table, df, db, dbhost = Sys.getenv("QRC_DB_HOST"), port = 5432,
uid = Sys.getenv("QRC_DB_USER"), pwd = Sys.getenv("QRC_DB_PWD"), ...)
|
table |
Name of table to insert to. |
df |
Dataframe to insert. |
dbhost |
Host IP address. Set to QRC_DB_HOST in .Renviron. |
port |
Port that server is listening on. Defaults to 5432. |
uid |
User ID. Set as QRC_DB_USER in .Renviron file. |
pwd |
Password. Set as QRC_DB_PWD in .Renviron file. |
... |
Additional arguments such as append or overwrite. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.