Re: [Rd] array subsetting of S4 object that inherits from array

2009-03-06 Thread Martin Maechler
BB == Bradley Buchsbaum bbuchsb...@berkeley.edu on Thu, 5 Mar 2009 21:16:40 -0500 writes: BB Hi, BB I have an S4 class that inherits from array but does not add generic BB implementations of the [ method. BB A simplified example is: BB setClass(fooarray,

[Rd] [SoC09-Info] Application starts next week.

2009-03-06 Thread Manuel J. A. Eugster
Hi everybody, next week is the week when mentoring organizations can apply for the Google Summer of Code. As I already wrote in my first mail, the idea is to submit our ideas by March 10. Currently three ideas are on the list[1]: * Development of crantastic.org by Hadley Wickham *

Re: [Rd] bug (PR#13570)

2009-03-06 Thread Peter Dalgaard
Prof Brian Ripley wrote: On Thu, 5 Mar 2009, Benjamin Tyner wrote: [...] I submitted a bug fix to Eric Grosse, the maintainer of the netlib routines; the fixed lines of fortran are identified in the comments at (just search for my email address): http://www.netlib.org/a/loess These fixes

[Rd] bug in summary.aovlist() with split= and (PR#13579)

2009-03-06 Thread rmh
---62a8e378fd5c9332aae960888fd28459 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit # R for Windows will not send your bug report automatically. # Please copy the bug report (after finishing it) to # your favorite email program and send it to # #

Re: [Rd] quantile(), IQR() and median() for factors

2009-03-06 Thread Greg Snow
I like the idea of median and friends working on ordered factors. Just a couple of thoughts on possible implementations. Adding extra checks and functionality will slow down the function. For a single evaluation on a given dataset this slowdown will not be noticeable, but inside of a

Re: [Rd] quantile(), IQR() and median() for factors

2009-03-06 Thread Prof Brian Ripley
On Fri, 6 Mar 2009, Greg Snow wrote: I like the idea of median and friends working on ordered factors. Just a couple of thoughts on possible implementations. Adding extra checks and functionality will slow down the function. For a single evaluation on a given dataset this slowdown will not

Re: [Rd] quantile(), IQR() and median() for factors

2009-03-06 Thread Simone Giannerini
Dear Greg, thank you for your comments, as Prof. Ripley pointed out, in the case of even sample size the median is not unique and is formed by the two central observations or a function of them, if that makes sense. Dear Prof. Ripley, thank you for your concern, may I notice that (in case of

Re: [Rd] quantile(), IQR() and median() for factors

2009-03-06 Thread Greg Snow
Yes I have discussed right continuous, left continous, etc. definitions for the median in numeric data. I was just curious what the discussion was in texts that cover quantiles/medians of ordered categorical data in detail. I do not expect Low.5 as computer output for the median (but

[Rd] S4 objects for S3 methods

2009-03-06 Thread John Chambers
Some modifications have been committed for the r-devel version today that modify (essentially, correct a bug in) the communication of objects to an S3 method from an S4 class that extends the S3 class. This is one of a sequence of changes designed to make S4 classes work more generally and

[Rd] Fix for foreign package segfault on Solaris 10 Intel

2009-03-06 Thread Jeff Long
Like a couple of other posters in the past year, I was seeing R 2.8.1 segfault in the foreign package on my Solaris 10 Intel system: library(foreign) *** caught segfault *** address fe1d5c70, cause 'invalid permissions' Traceback: 1: .C(spss_init, PACKAGE =

Re: [Rd] Fix for foreign package segfault on Solaris 10 Intel

2009-03-06 Thread Prof Brian Ripley
Can you show us the output you get from building foreign, and explain how it comes to be linked against libavl? I get (SunStudio 12) cc -xc99 -G -L/opt/csw/lib -o foreign.so R_systat.o Rdbfread.o Rdbfwrite.o SASxport.o avl.o dbfopen.o file-handle.o format.o init.o minitab.o pfm-read.o

Re: [Rd] question

2009-03-06 Thread Mark.Bravington
[ivo welch wrote:] The syntax for returning multiple arguments does not strike me as particularly appealing. would it not possible to allow syntax like: f= function() { return( rnorm(10), rnorm(20) ) } (a,d$b) = f() FWIW, my own solution is to define a multi-assign operator: '%-%' -

Re: [Rd] Fix for foreign package segfault on Solaris 10 Intel

2009-03-06 Thread Jeff Long
I built it several times with a variety of flags and compilers. Here's what was used for the gcc3 build: /opt/csw/gcc3/bin/gcc -std=gnu99 -G -L/opt/sfw/lib -L/opt/csw/lib -L/opt/local/lib -L/usr/apps/cdat32/NetCDF/lib -o foreign.so avl.o dbfopen.o file-handle.o format.o init.o minitab.o

Re: [Rd] Fix for foreign package segfault on Solaris 10 Intel

2009-03-06 Thread Prof Brian Ripley
Interesting, thanks. So 1) This is a shared R library build (not the default, and AFAIR no one reporting this has mentioned that -- not you, for example) and 2) You have a third-party libintl. One solution would seem to be to ask R to use the libintl in the sources by (I think)