[R] Issues with RPostgres

Abraham Mathew mathewanalytics at gmail.com
Thu Aug 27 21:29:28 CEST 2015


I have a user-defined function that I'm using alongside a postgresql
connection to
summarize some data. I've connected to the local machine with no problem.
However,
the connection keeps throwing the following error when I attempt to use it.
Can anyone point
to what I could be doing wrong.

> ds_summary(con, "test", vars=c("Age"), y=c("Class"))
Error in postgresqlNewConnection(drv, ...) :
  RS-DBI driver: (could not connect postgres at localhost on dbname "test"
)


con is the connection
test is the database table
age is the attribute that will be summarized
class is the response variable

Can anyone help?


-- 


*Abraham MathewData Ninja and Statistical Modeler*



*Minneapolis, MN720-648-0108 at abmathewksAnalytics_Blog
<https://mathewanalytics.wordpress.com/>*

	[[alternative HTML version deleted]]



More information about the R-help mailing list