[R] postgres
Andrew Perrin
clists at perrin.socsci.unc.edu
Tue Feb 11 22:36:03 CET 2003
Yes, I do. Here's a code snippet that worked for me:
library(RPgSQL)
db.connect(dbname='fgdata')
fgdata.df<-db.read.table('mlm_data')
This assumes you have the RPgSQL library installed, and that you have
postgres running on the local machine. There's more documentation in the
RPgSQL package.
Best,
Andy Perrin
----------------------------------------------------------------------
Andrew J Perrin - http://www.unc.edu/~aperrin
Assistant Professor of Sociology, U of North Carolina, Chapel Hill
clists at perrin.socsci.unc.edu * andrew_perrin (at) unc.edu
On 11 Feb 2003, Joshua Gramlich wrote:
> Is anyone using R with postgres? I'd like to do so, but cannot seem to
> find any reasonable explanation of how to do so.
>
>
> Joshua Gramlich
> Chicago, IL
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> http://www.stat.math.ethz.ch/mailman/listinfo/r-help
>
More information about the R-help
mailing list