Re: [Rd] external equiv to R_serialize()?

2009-03-30 Thread Prof Brian Ripley
On Mon, 30 Mar 2009, Joe Conway wrote: I'm trying to efficiently allow conversion of R objects to PostgreSQL bytea (raw binary) datatype within PL/R for persistent storage in Postgres tables. I have found R_serialize() which looks like what I need, -- e.g. R_serialize(object, NULL, FALSE, NULL

[Rd] external equiv to R_serialize()?

2009-03-30 Thread Joe Conway
I'm trying to efficiently allow conversion of R objects to PostgreSQL bytea (raw binary) datatype within PL/R for persistent storage in Postgres tables. I have found R_serialize() which looks like what I need, -- e.g. R_serialize(object, NULL, FALSE, NULL) -- except that it is marked attribute_

[Rd] Possible bug in summary.survfit - 'scale' argument ignored?

2009-03-30 Thread Marc Schwartz
Hi all, Using: R version 2.8.1 Patched (2009-03-07 r48068) on OSX (10.5.6) with survival version: Version:2.35-3 Date: 2009-02-10 I get the following using the first example in ?summary.survfit: > summary( survfit( Surv(futime, fustat)~1, data=ovarian)) Call:

Re: [Rd] Gamma funtion(s) bug

2009-03-30 Thread Ted Harding
On 30-Mar-09 20:37:51, Duncan Murdoch wrote: > On 3/30/2009 2:55 PM, (Ted Harding) wrote: >> On 30-Mar-09 18:40:03, Kjetil Halvorsen wrote: >>> With R 2.8.1 on ubuntu I get: gamma(-1) >>> [1] NaN >>> Warning message: >>> In gamma(-1) : NaNs produced lgamma(-1) >>> [1] Inf >>> Warning mess

Re: [Rd] Gamma funtion(s) bug

2009-03-30 Thread Duncan Murdoch
On 3/30/2009 2:55 PM, (Ted Harding) wrote: On 30-Mar-09 18:40:03, Kjetil Halvorsen wrote: With R 2.8.1 on ubuntu I get: gamma(-1) [1] NaN Warning message: In gamma(-1) : NaNs produced lgamma(-1) [1] Inf Warning message: value out of range in 'lgamma' Is'nt the first one right, and the secon

Re: [Rd] if does not covert raw to logical (PR#13630)

2009-03-30 Thread Waclaw . Marcin . Kusnierczyk
Martin Maechler wrote: > Thank you, Wacek, > happy to serve. (...) > indeed, it was pretty straightforward hard to implement the missing case in > asLogical(.) and I will commit my patch to the sources tomorrow > {being busy otherwise for the rest of today}. > thanks! > Note that the raw

Re: [Rd] Gamma funtion(s) bug

2009-03-30 Thread Ted Harding
On 30-Mar-09 18:40:03, Kjetil Halvorsen wrote: > With R 2.8.1 on ubuntu I get: >> gamma(-1) > [1] NaN > Warning message: > In gamma(-1) : NaNs produced >> lgamma(-1) > [1] Inf > Warning message: > value out of range in 'lgamma' > > Is'nt the first one right, and the second one (lgamma) > should al

[Rd] Gamma funtion(s) bug

2009-03-30 Thread Kjetil Halvorsen
With R 2.8.1 on ubuntu I get: > gamma(-1) [1] NaN Warning message: In gamma(-1) : NaNs produced > lgamma(-1) [1] Inf Warning message: value out of range in 'lgamma' Is'nt the first one right, and the second one (lgamma) should also be NaN? Kjetil [[alternative HTML version deleted]] __

Re: [Rd] if does not covert raw to logical (PR#13630)

2009-03-30 Thread maechler
Thank you, Wacek, for > Wacek Kusnierczyk > on Sun, 29 Mar 2009 22:40:11 +0200 (CEST) writes: > Full_Name: Wacek Kusnierczyk > Version: 2.8.0 and 2.10.0 r48242 > OS: Ubuntu 8.04 Linux 32 bit > Submission from: (NULL) (80.202.30.36) > The following raises an erro

Re: [Rd] duplicated fails to rise correct errors (PR#13632)

2009-03-30 Thread Wacek Kusnierczyk
the bug seems to have a trivial solution; as far as i can see, it suffices to replace if (!is.logical(incomparables) || incomparables) with if(!identical(incomparables, FALSE)) in all its occurrences in src/library/base/R/duplicated.R attached is a patch created, successfully tested

[Rd] duplicated fails to rise correct errors (PR#13632)

2009-03-30 Thread waku
Full_Name: Wacek Kusnierczyk Version: 2.8.0 and 2.10.0 r48242 OS: Ubuntu 8.04 Linux 32 bit Submission from: (NULL) (129.241.110.161) In the following code: duplicated(data.frame(), incomparables=NA) # Error in if (!is.logical(incomparables) || incomparables) .NotYetUsed("incomparables != F

Re: [Rd] quantile and IQR do not check for numeric input (PR#13631)

2009-03-30 Thread Simone Giannerini
Dear Thomas, On Mon, Mar 30, 2009 at 1:50 PM, Thomas Lumley wrote: > On Mon, 30 Mar 2009 sgianner...@gmail.com wrote: > >> This report follows the post >> >> http://tolstoy.newcastle.edu.au/R/e6/devel/09/03/0760.html >> >> where it is shown that quantile() and IQR() do not work as documented. > >

Re: [Rd] quantile and IQR do not check for numeric input (PR#13631)

2009-03-30 Thread Duncan Murdoch
On 3/30/2009 7:50 AM, Thomas Lumley wrote: On Mon, 30 Mar 2009 sgianner...@gmail.com wrote: This report follows the post http://tolstoy.newcastle.edu.au/R/e6/devel/09/03/0760.html where it is shown that quantile() and IQR() do not work as documented. Nothing of the sort is shown! The thread

Re: [Rd] quantile and IQR do not check for numeric input (PR#13631)

2009-03-30 Thread Thomas Lumley
On Mon, 30 Mar 2009 sgianner...@gmail.com wrote: This report follows the post http://tolstoy.newcastle.edu.au/R/e6/devel/09/03/0760.html where it is shown that quantile() and IQR() do not work as documented. Nothing of the sort is shown! The thread argued that methods for these functions fo

[Rd] quantile and IQR do not check for numeric input (PR#13631)

2009-03-30 Thread sgiannerini
This report follows the post http://tolstoy.newcastle.edu.au/R/e6/devel/09/03/0760.html where it is shown that quantile() and IQR() do not work as documented. In fact they do not check for numeric input even if the documentation says = : ?quantile x numeric vectors whose sample quantiles ar

Re: [Rd] CTRL-C during .Call causes R to quit to command line

2009-03-30 Thread Sklyar, Oleg (London)
If you use JNI or rJava, you should start the VM with -Xrs argument, otherwise the descibed things happen as Java catches the Ctrl-C interrupt Dr Oleg Sklyar Research Technologist AHL / Man Investments Ltd +44 (0)20 7144 3107 oskl...@maninvestments.com > -Original Message- > From: r-deve