Re: [Rd] suggestion for extending ?as.factor

2009-05-08 Thread Petr Savicky
On Wed, May 06, 2009 at 10:41:58AM +0200, Martin Maechler wrote: PD I think that the real issue is that we actually do want almost-equal PD numbers to be folded together. yes, this now (revision 48469) will happen by default, using signif(x, 15) where '15' is the default for the

Re: [Rd] proposed changes to RSiteSearch

2009-05-08 Thread Jonathan Baron
On 05/07/09 13:48, Liaw, Andy wrote: From: Duncan Murdoch I'll incorporate the changes if you like. Yes. Please do. I understand that it won't take effect for a while. When it does, I'll change my site. What do you think of the idea of adding a gmane (or other archive) search to

Re: [Rd] proposed changes to RSiteSearch

2009-05-08 Thread Jonathan Baron
There is something to be said for taking all of these functions, including the original RSiteSearch, out of utils and putting them in the new RSiteSearch package. These are the sorts of things that will get revised frequently, and this way (I think) we won't have to bother whoever takes care of

Re: [Rd] proposed changes to RSiteSearch

2009-05-08 Thread Wacek Kusnierczyk
Romain Francois wrote: txt - grep( '^tr.*td align=right.*a', readLines( url ), value = TRUE ) rx - '^.*?a href=(.*?)(.*?)/a.*td(.*?)/td.*$' out - data.frame( url = gsub( rx, \\1, txt ), group = gsub( rx, \\2, txt ), description = gsub( rx, \\3, txt ),

Re: [Rd] proposed changes to RSiteSearch

2009-05-08 Thread Jonathan Baron
After reading all this, I favor doing one of two things: 1. Put all the search stuff, including the proposed gmane function, in Spencer's new package but make it one of the default packages, like utils, etc., or, 2. Put everything in utils, including Spencer's new package and the gmane

Re: [Rd] suggestion for extending ?as.factor

2009-05-08 Thread Martin Maechler
PS == Petr Savicky savi...@cs.cas.cz on Fri, 8 May 2009 11:01:55 +0200 writes: PS On Wed, May 06, 2009 at 10:41:58AM +0200, Martin Maechler wrote: PD I think that the real issue is that we actually do want almost-equal PD numbers to be folded together. yes, this now

Re: [Rd] proposed changes to RSiteSearch

2009-05-08 Thread Romain Francois
Jonathan Baron wrote: After reading all this, I favor doing one of two things: 1. Put all the search stuff, including the proposed gmane function, in Spencer's new package but make it one of the default packages, like utils, etc., or, 2. Put everything in utils, including Spencer's new

Re: [Rd] proposed changes to RSiteSearch

2009-05-08 Thread Philippe Grosjean
Don't forget R wiki in the list. Best, Philippe ..°})) ) ) ) ) ) ( ( ( ( (Prof. Philippe Grosjean ) ) ) ) ) ( ( ( ( (Numerical Ecology of Aquatic Systems ) ) ) ) ) Mons-Hainaut University, Belgium ( ( ( ( (

Re: [Rd] proposed changes to RSiteSearch

2009-05-08 Thread Romain Francois
strapply in package gsubfn brings elegance here: txt - 'foobar/foo' rx - (.*?)(.*?)/(.*?) strapply( txt, rx, c , perl = T ) [[1]] [1] foo bar foo Too bad you have to pay this on performance: txt - rep( 'foobar/foo', 1000 ) rx - (.*?)(.*?)/(.*?) system.time( out - strapply( txt, rx, c ,

Re: [Rd] proposed changes to RSiteSearch

2009-05-08 Thread Romain Francois
yes, and r graph gallery. those two would be easy to implement once the system is up. Philippe Grosjean wrote: Don't forget R wiki in the list. Best, Philippe ..°})) ) ) ) ) ) ( ( ( ( (Prof. Philippe Grosjean ) ) ) ) ) ( ( ( ( (

Re: [Rd] suggestion for extending ?as.factor

2009-05-08 Thread Petr Savicky
On Fri, May 08, 2009 at 03:18:01PM +0200, Martin Maechler wrote: As long as we don't want to allow factor(numeric) to fail --rarely -- I think (and that actually has been a recurring daunting thought for quite a few days) that we probably need an extra step of checking for duplicate levels,

Re: [Rd] proposed changes to RSiteSearch

2009-05-08 Thread hadley wickham
On Fri, May 8, 2009 at 10:11 AM, Romain Francois romain.franc...@dbmail.com wrote: strapply in package gsubfn brings elegance here: txt - 'foobar/foo' rx - (.*?)(.*?)/(.*?) strapply( txt, rx, c , perl = T ) [[1]] [1] foo bar foo Too bad you have to pay this on performance: txt - rep(

Re: [Rd] proposed changes to RSiteSearch

2009-05-08 Thread Philippe Grosjean
..°})) ) ) ) ) ) ( ( ( ( (Prof. Philippe Grosjean ) ) ) ) ) ( ( ( ( (Numerical Ecology of Aquatic Systems ) ) ) ) ) Mons-Hainaut University, Belgium ( ( ( ( ( .. Romain

Re: [Rd] suggestion for extending ?as.factor

2009-05-08 Thread Petr Savicky
On Fri, May 08, 2009 at 05:14:48PM +0200, Petr Savicky wrote: Let me suggest to consider the following modification, where match() is done on the strings, not on the original values. levels - unique(as.character(sort(unique(x x - as.character(x) f - match(x, levels) An alternative

Re: [Rd] suggestion for extending ?as.factor

2009-05-08 Thread Martin Maechler
PS == Petr Savicky savi...@cs.cas.cz on Fri, 8 May 2009 18:10:56 +0200 writes: PS On Fri, May 08, 2009 at 05:14:48PM +0200, Petr Savicky wrote: Let me suggest to consider the following modification, where match() is done on the strings, not on the original values. levels

Re: [Rd] proposed changes to RSiteSearch

2009-05-08 Thread Wacek Kusnierczyk
Romain Francois wrote: strapply in package gsubfn brings elegance here: txt - 'foobar/foo' rx - (.*?)(.*?)/(.*?) strapply( txt, rx, c , perl = T ) [[1]] [1] foo bar foo sure, but this does not, in any way, make it less strange that gsub is not vectorized. Too bad you have to pay

Re: [Rd] proposed changes to RSiteSearch

2009-05-08 Thread Wacek Kusnierczyk
hadley wickham wrote: On Fri, May 8, 2009 at 10:11 AM, Romain Francois romain.franc...@dbmail.com wrote: strapply in package gsubfn brings elegance here: txt - 'foobar/foo' rx - (.*?)(.*?)/(.*?) strapply( txt, rx, c , perl = T ) [[1]] [1] foo bar foo Too bad you have

Re: [Rd] proposed changes to RSiteSearch

2009-05-08 Thread Romain Francois
Philippe Grosjean wrote: ..°})) ) ) ) ) ) ( ( ( ( (Prof. Philippe Grosjean ) ) ) ) ) ( ( ( ( (Numerical Ecology of Aquatic Systems ) ) ) ) ) Mons-Hainaut University, Belgium ( ( ( ( (

Re: [Rd] suggestion for extending ?as.factor

2009-05-08 Thread Petr Savicky
On Fri, May 08, 2009 at 06:48:40PM +0200, Martin Maechler wrote: PS == Petr Savicky savi...@cs.cas.cz on Fri, 8 May 2009 18:10:56 +0200 writes: [...] PS ... I have PS strong objections against the existing implementation of as.character(), {(because it is not *accurate*

[Rd] unsplit list of data.frames with one column

2009-05-08 Thread Will Gray
Perhaps this is the intended behavior, but I discovered that unsplit throws an error when it tries to set rownames of a variable that has no dimension. This occurs when unsplit is passed a list of data.frames that have only a single column. An example: df - data.frame(letters[seq(25)])

Re: [Rd] dqrdc2_ dqrsl_ dtrsl_ missing from libs? compiling earth standalone

2009-05-08 Thread Casper Clemence
solved I just linked to the libR.a :¬/ 2009/5/8 Casper Clemence maninal...@googlemail.com: I have been trying to compile the earth Multivariate Adaptive Regression of Splines package as a standalone application under Linux (x86_64 kernel-2.6.27.21 openSUSE 11.1) with gcc 4.3.2. The package

[Rd] dqrdc2_ dqrsl_ dtrsl_ missing from libs? compiling earth standalone

2009-05-08 Thread Casper Clemence
I have been trying to compile the earth Multivariate Adaptive Regression of Splines package as a standalone application under Linux (x86_64 kernel-2.6.27.21 openSUSE 11.1) with gcc 4.3.2. The package compiles without problems from within R as an R module and I get the following linker error:

Re: [Rd] patch for axis.POSIXct (related to timezones)

2009-05-08 Thread Dan Kelley
Some time ago, I posted a note about what I considered to be a bug in axis.POSIXt() for R 2.8.x, relating to whether timezones in the data are obeyed on the axes. A link to that note, and to a quick and helpful response, is at the following URL

[Rd] anyDuplicated(incomp=NA) fails

2009-05-08 Thread William Dunlap
With today's R 2.10.0(devel) I get: anyDuplicated(c(1,NA,3,NA,5), incomp=NA) # expect 0 Warning: stack imbalance in 'anyDuplicated', 20 then 21 Warning: stack imbalance in '.Internal', 19 then 20 Warning: stack imbalance in '{', 17 then 18 [1] 0 anyDuplicated(c(1,NA,3,NA,3), incomp=NA) # expect

[Rd] need help for open source and diagramming research

2009-05-08 Thread chung
Dear open source contributors, I am Eunyoung Chung, a Masters student working with Dr. Jensen at Oregon State University. We are currently doing a research project in collaboration with Dr. Truong and Ph.D student Koji Yatani at University of Toronto. Our goal is to understand how contributors