Description Usage Arguments Value Author(s) See Also Examples
View source: R/access_postgresql.R
This function should be used to access the remote PostgreSQL data base and import data into the current R session. The function will attempt to open a connection, execute the defined functions and close the database connection.
1 2 3 4 5 6 7 | access_postgresql(
host,
username,
password,
db_name,
report_name = c("tb_month", "hcv_month", "hiv_month")
)
|
host |
string defining PostgreSQL database host name |
username |
string to identify database username |
password |
string to provide access password |
db_name |
string to identify the name of the database being accessed - e.g. "analytics" |
report_name |
string defining which report-specific data to extract from PostgreSQL data base |
A list of R objects will be returned. The content will be dependent
upone the functions defined in import_fun
.
Jay Achar
1 2 3 4 5 6 7 | ## Not run:
access_postgresql(host = "test-postgre-oca.org",
username = "user1",
password = PG_PWD,
report_name = "tb_month")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.