pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Aram Fingal <fingal@multifactorial.com>
To: Postgres-General General <pgsql-general@postgresql.org>
Subject: Re: crosstab
Date: Tue, 4 Sep 2012 13:15:11 -0400
Message-ID: <96E82B11-77A1-4F55-91B9-82E66D892FF4@multifactorial.com> (raw)
In-Reply-To: <1346773199616-5722632.post@n5.nabble.com>
References: <1346773199616-5722632.post@n5.nabble.com>

Has anyone tried developing a PLR procedure to do the equivalent of crosstab but using the Reshape library from R?  The reason I ask is that I have been extracting tables like this with an R script, using RPostgreSQL, then functions from Reshape and writing the output to a .csv file.  I wonder if a PLR procedure could so this with fewer lines of code and greater speed.  I'm just not clear on how to write the PLR code.





view thread (25+ messages)  latest in thread

Message-ID: <96E82B11-77A1-4F55-91B9-82E66D892FF4@multifactorial.com>
Permalink:  ../96E82B11-77A1-4F55-91B9-82E66D892FF4@multifactorial.com/
Also on:    postgresql.org/message-id/96E82B11-77A1-4F55-91B9-82E66D892FF4@multifactorial.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: fingal@multifactorial.com
  Subject: Re: crosstab
  In-Reply-To: <96E82B11-77A1-4F55-91B9-82E66D892FF4@multifactorial.com>
  References: <1346773199616-5722632.post@n5.nabble.com> <96E82B11-77A1-4F55-91B9-82E66D892FF4@multifactorial.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox