Re: [Rd] [R] NaN, Inf to NA

2011-05-27 Thread Duncan Murdoch
Okay, I've now committed these changes to R-devel. We'll see over the next few days if CRAN packages were making use of the old permissiveness, and if necessary modify or revert the change. Duncan Murdoch On 27/05/2011 11:52 AM, Marc Schwartz wrote: On May 27, 2011, at 10:33 AM, Duncan Murdo

Re: [Rd] [R] NaN, Inf to NA

2011-05-27 Thread Duncan Murdoch
On 27/05/2011 11:53 AM, Prof Brian Ripley wrote: On Fri, 27 May 2011, Duncan Murdoch wrote: > On 27/05/2011 11:11 AM, Martin Maechler wrote: >> > Duncan Murdoch >> > on Fri, 27 May 2011 08:23:14 -0400 writes: >> >> > On 11-05-27 4:27 AM, Albert-Jan Roskam wrote: >>

Re: [Rd] [R] NaN, Inf to NA

2011-05-27 Thread Marc Schwartz
On May 27, 2011, at 10:33 AM, Duncan Murdoch wrote: > On 27/05/2011 11:11 AM, Martin Maechler wrote: >> > Duncan Murdoch >> > on Fri, 27 May 2011 08:23:14 -0400 writes: >> >> > On 11-05-27 4:27 AM, Albert-Jan Roskam wrote: >> >> Aha! Thank you very much for that clarifica

Re: [Rd] [R] NaN, Inf to NA

2011-05-27 Thread Prof Brian Ripley
On Fri, 27 May 2011, Duncan Murdoch wrote: On 27/05/2011 11:11 AM, Martin Maechler wrote: > Duncan Murdoch > on Fri, 27 May 2011 08:23:14 -0400 writes: > On 11-05-27 4:27 AM, Albert-Jan Roskam wrote: >> Aha! Thank you very much for that clarification! It would >>

Re: [Rd] Statistical mode

2011-05-27 Thread Arni Magnusson
Thank you, Kevin, for the feedback. 1. The mode is not so interesting for continuous data. I would much rather use something like density(). Absolutely. The help page for statmode() says it is for discrete data, and points to density() for continuous data. 2. Both the iris and barley data

Re: [Rd] [R] NaN, Inf to NA

2011-05-27 Thread Duncan Murdoch
On 27/05/2011 11:11 AM, Martin Maechler wrote: > Duncan Murdoch > on Fri, 27 May 2011 08:23:14 -0400 writes: > On 11-05-27 4:27 AM, Albert-Jan Roskam wrote: >> Aha! Thank you very much for that clarification! It would >> be much more user friendly if R generated a

Re: [Rd] Statistical mode

2011-05-27 Thread Kevin Wright
Arni, Here are two examples: R> statmode(iris) Sepal.Length Sepal.Width Petal.Length Petal.Width Species "5" "3""1.4""0.2" "setosa" R> table(iris$Species) setosa versicolor virginica 50 50 50 R> library(lattice) R> statmo

Re: [Rd] Reference Classes/S4 Classes: can method dispatch check superclasses BEFORE resorting to method for "ANY"?

2011-05-27 Thread Janko Thyson
Cool, thanks a lot for the insight! I forgot that there is the option to use 'contains="VIRTUAL" and probably out of laziness usually set my virtual S4 classes simply via 'setClass("Something")'. On 27.05.2011 15:22, Martin Morgan wrote: > On 05/27/2011 06:13 AM, Janko Thyson wrote: >> Dear list

Re: [Rd] Reference Classes/S4 Classes: can method dispatch check superclasses BEFORE resorting to method for "ANY"?

2011-05-27 Thread Martin Morgan
On 05/27/2011 06:13 AM, Janko Thyson wrote: Dear list, is it possible that method dispatch checks for superclasses/virtual classes before checking "ANY"? I'd like to build a generic initialization method for all my Reference Class (say "MyDataFrame") objects by having them inherit from class, s

[Rd] Reference Classes/S4 Classes: can method dispatch check superclasses BEFORE resorting to method for "ANY"?

2011-05-27 Thread Janko Thyson
Dear list, is it possible that method dispatch checks for superclasses/virtual classes before checking "ANY"? I'd like to build a generic initialization method for all my Reference Class (say "MyDataFrame") objects by having them inherit from class, say "MyRefClassVirtual" (which would have