Re: [Rd] Reference Classes: Accessing methods via [[...]], bug?

2011-04-30 Thread Hadley Wickham
If this message is garbled for anyone else, the original question on stackoverflow is here: http://stackoverflow.com/questions/5841339/using-notation-for-reference-class-methods Hadley On Sat, Apr 30, 2011 at 11:35 AM, Chad Goymer wrote: > > I've been trying to use methods for reference classes

[Rd] Bug report: R 2.14.0dev Sweave option width does not work

2011-04-30 Thread Alexander Favorov
Hi! In R 2.14.0dev (R version 2.14.0 Under development (unstable) (2011-04-29 r55692), Windows release (http://cran.r-project.org/bin/windows/base/rdevel.html), the line : options(width=55) in code chunk of an Rnw file has no effect on sweave's output text file. The same thing in 2.13.0 wor

Re: [Rd] Kendall's tau code

2011-04-30 Thread SeshanV
Feel free to contact me. Thanks, Venkat From: Martin Maechler [maech...@stat.math.ethz.ch] Sent: Saturday, April 30, 2011 5:05 PM To: Seshan, Venkatraman E./Epidemiology-Biostatistics Cc: r-devel@r-project.org Subject: Re: [Rd] Kendall's tau code > "

Re: [Rd] Kendall's tau code

2011-04-30 Thread Martin Maechler
> "S" == SeshanV > on Sat, 30 Apr 2011 11:20:59 -0400 writes: > I discovered that the Kendall's tau calculation in R uses > all pairwise comparisons which is O(n^2) and takes a long time for > large vectors. I implemented a O(n*log(n)) algorithm based on > merge-sort.

[Rd] Reference Classes: Accessing methods via [[...]], bug?

2011-04-30 Thread Chad Goymer
I've been trying to use methods for reference classes via the notation "[[...]]" (X[["doSomething"]] rather than X$doSomething), but it failed to work. However, I did find that if you use the usual "$" notation first, "[[...]]" can be used afterwards. The following simple example illustrates th

[Rd] Kendall's tau code

2011-04-30 Thread SeshanV
I discovered that the Kendall's tau calculation in R uses all pairwise comparisons which is O(n^2) and takes a long time for large vectors. I implemented a O(n*log(n)) algorithm based on merge-sort. Is this of interest to be included in core R? The code (fortran and R wrapper) is available in m

Re: [Rd] median and data frames

2011-04-30 Thread Tim Hesterberg
I also favor deprecating mean.data.frame. One possible exception would be for a single-column data frame. But even here I'd say no, lest people expect the same behavior for median, var, ... Pat's suggestion of using stop() would work nicely for mean. (but omit paste - stop handles that). Tim Hes