psql_read_table.Rd
Read a table from a PostgreSQL database as a data frame.
A string indicating the name of the table.
A string of the schema name. Default value is "public"
.
A string of a file path to the yaml configuration file.
The default value grabs the file path from the psql.config_path option
and uses NULL
if no value supplied.
A string of the name of value. The default value grabs
the value from the psql.config_value option and uses "default"
if no
value is supplied.
A data frame
The function open and closes its own database connection. You do not need to close the database connection afterwards.
if (FALSE) { # \dontrun{
psql_read_table("capture")
psql_read_table("counts", "boat_count")
} # }