pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: A.M. <agentm@themactionfaction.com>
To: Aram Fingal <fingal@multifactorial.com>
Cc: Postgres-General General <pgsql-general@postgresql.org>
Subject: Re: crosstab
Date: Tue, 4 Sep 2012 16:36:39 -0400
Message-ID: <16BCF757-06E1-47C2-8E59-ACD7FEBE6A3B@themactionfaction.com> (raw)
In-Reply-To: <7455D95E-B02C-4D24-A651-F9D84914A89E@multifactorial.com>
References: <1346773199616-5722632.post@n5.nabble.com>
	<1346784707.8977.6.camel@asus-1001PX.home>
	<73FF0C6A-965B-4456-BA90-2B8FD1CBC118@multifactorial.com>
	<504655DD.4030701@joeconway.com>
	<09AE4623-B1E5-4F8D-AC55-EF5906A6411C@multifactorial.com>
	<CAH3i69nY9131fN68PaYsY63AWTteq08uWq4QoNY_1iyc=o3vgg@mail.gmail.com>
	<7455D95E-B02C-4D24-A651-F9D84914A89E@multifactorial.com>


On Sep 4, 2012, at 4:30 PM, Aram Fingal wrote:

> 
> On Sep 4, 2012, at 4:18 PM, Misa Simic wrote:
> 
>> Inside PL/R you can take the same table as it is (unpivoted) as your data.frame and then pivot it inside R using reshape package,,, And then inside PL/R function do whatever you would like to do with data i.e export to whatever... - but you cant return it pivoted as result of Postgres function..
> 
>  Okay, you just answered my question in reply to Joe Conway (crossed in the mail).  So I could just use write.table() from R to save to disk or I might even have the PL/R procedure write a heatmap or PCA plot to disk, again without returning any rows to PostgreSQL.
> 
> -Aram

Or you could return the heatmap/plot as BYTEA data or use arrays as necessary.

Cheers,
M







view thread (25+ messages)  latest in thread

Message-ID: <16BCF757-06E1-47C2-8E59-ACD7FEBE6A3B@themactionfaction.com>
Permalink:  ../16BCF757-06E1-47C2-8E59-ACD7FEBE6A3B@themactionfaction.com/
Also on:    postgresql.org/message-id/16BCF757-06E1-47C2-8E59-ACD7FEBE6A3B@themactionfaction.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: agentm@themactionfaction.com, fingal@multifactorial.com
  Subject: Re: crosstab
  In-Reply-To: <16BCF757-06E1-47C2-8E59-ACD7FEBE6A3B@themactionfaction.com>
  References: <1346773199616-5722632.post@n5.nabble.com> <1346784707.8977.6.camel@asus-1001PX.home> <73FF0C6A-965B-4456-BA90-2B8FD1CBC118@multifactorial.com> <504655DD.4030701@joeconway.com> <09AE4623-B1E5-4F8D-AC55-EF5906A6411C@multifactorial.com> <CAH3i69nY9131fN68PaYsY63AWTteq08uWq4QoNY_1iyc=o3vgg@mail.gmail.com> <7455D95E-B02C-4D24-A651-F9D84914A89E@multifactorial.com> <16BCF757-06E1-47C2-8E59-ACD7FEBE6A3B@themactionfaction.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