Re: R and postgres

From: TJ O'Donnell <tjo(at)acm(dot)org>
To: reece(at)harts(dot)net
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: R and postgres
Date: 2006-11-07 15:30:58
Message-ID: 4550A6B2.3030702@acm.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I use RODBC which is available from http://cran.r-project.org/
I'm not sure if this will do what you want, or whether it has
the features of Rdbi you need, but it gets the job done for me.
I can open a "channel", execute a SQL statement (typically a Select)
and read the results back into a R dataframe.
There is a nice way to dump a dataframe back into a table which
is created for you, with columns and datatypes as appropriate.

Hope this helps.

TJ O'Donnell
http://www.gnova.com/

> I'd like to get R to talk to postgresql, but my head's spinning among a
> web of broken links, way outdated web pages, project deprecation
> announcements and a terrible signal:link ratio.
>
> Rdbi and RdbiPgSQL seem to be the answer, despite both being apparently
> defunct projects.
>
> What is the Right Thing for a guy who wants R to talk to postgresql?

Browse pgsql-general by date

  From Date Subject
Next Message Bart McFarling 2006-11-07 16:12:57 Linux vs. FreeBSD
Previous Message Tom Lane 2006-11-07 14:53:27 Re: when to use pfree?