Description Usage Arguments Details Value Author(s) See Also Examples
This function is used to select all records from a view or a table within the specified schema within oliver_replica
. For now, the files are written in a feather format in the Data
directory of the package.
1 | write_oliver_data(data_name, con, schema)
|
data_name |
A character string specifying the name of the table or view being accessed from the oliver replica. |
con |
An object of class |
schema |
A character string specifying the name of the schema holding the table or view from the oliver replica. The default value is |
#' The following dependencies are required in order to create a valid string:
#'
The presence of an open SSH tunnel to the oliver replica as partially decribed in the create_ssh_command
documentation.
A valid username and password on the oliver replica database. Can be set by contacting mattbro@uw.edu.
A single feather file.
Joe Mienko, mienkoja@uw.edu
create_ssh_command
, create_flat_files
1 2 3 4 5 6 7 8 9 10 11 12 | library(dplyr)
library(RPostgreSQL)
library(feather)
con <- src_postgres(
dbname = 'oliver_replica',
host = '127.0.0.1',
user = 'mienkoja',
password = 'mypassword'
)
write_oliver_data(data_name = 'report_businessmetrics_memberbreakdown', con = con)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.