Received: from magus.postgresql.org ([87.238.57.229]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1T9325-0005Dc-KN for pgsql-general@postgresql.org; Tue, 04 Sep 2012 23:59:49 +0000 Received: from wsip-72-214-29-243.sd.sd.cox.net ([72.214.29.243] helo=joeconway.com) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1T9324-0004Rl-MZ for pgsql-general@postgresql.org; Tue, 04 Sep 2012 23:59:49 +0000 Received: from www.joeconway.com (account jconway [192.168.4.40] verified) by joeconway.com (CommuniGate Pro SMTP 4.1.8) with ESMTP-TLS id 12269486; Tue, 04 Sep 2012 16:59:47 -0700 Message-ID: <504695F3.6000705@joeconway.com> Date: Tue, 04 Sep 2012 16:59:47 -0700 From: Joe Conway User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.0.12) Gecko/20071019 Fedora/1.5.0.12-3.fc6 pango-text Thunderbird/1.5.0.12 Mnenhy/0.7.5.666 MIME-Version: 1.0 To: Misa Simic CC: Aram Fingal , Postgres-General General Subject: Re: crosstab 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> <50465CD9.3050809@joeconway.com> <50466D5B.3060101@joeconway.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -0.9 (/) X-Archive-Number: 201209/116 X-Sequence-Number: 190132 On 09/04/2012 04:45 PM, Misa Simic wrote: > Hi Joe, > > Do you maybe know, is it possible inside PL/R to call another PL/R > function - but take result as R object (whatever R function returns)? Mmmm, what about using plr_modules table? It creates native R functions that get installed into your R interpreter when R is first initialized. http://www.joeconway.com/plr/doc/plr-module-funcs.html Joe -- Joe Conway credativ LLC: http://www.credativ.us Linux, PostgreSQL, and general Open Source Training, Service, Consulting, & 24x7 Support