Re: [Rd] aperm() should retain class of input object

2010-12-28 Thread Tim Hesterberg
Having aperm() return an object of the same class is dangerous, there are undoubtedly classes for which that is not appropriate, producing an illegal object for that class or quietly giving incorrect results. Three alternatives are to: * add the keep.class option but with default FALSE * make

Re: [Rd] RFC: sapply() limitation from vector to matrix, but not further

2010-12-28 Thread Martin Maechler
Gabor Grothendieck ggrothendi...@gmail.com on Mon, 27 Dec 2010 17:06:25 -0500 writes: On Wed, Dec 1, 2010 at 3:39 AM, Martin Maechler maech...@stat.math.ethz.ch wrote: My proposal -- implemented and make check tested -- is to add an optional argument  'ARRAY' which

Re: [Rd] RFC: sapply() limitation from vector to matrix, but not further

2010-12-28 Thread Tony Plate
The abind() function from the abind package is an alternative here -- it can take a list argument, which makes it easy to use with the result of lapply(). It's also able take direction about which dimension to join on. x - list(a=1,b=2,c=3) f - function(v) matrix(v, nrow=2, ncol=4)

Re: [Rd] rJava question

2010-12-28 Thread Simon Urbanek
Dominick, On Dec 27, 2010, at 11:56 PM, Dominick Samperi wrote: After some trial and error I figured out how to pass matrices from R to java and back using rJava, but this method is not documented and I wonder if there is a better way? stats-rosuda-devel is the rJava list you want to

Re: [Rd] RFC: sapply() limitation from vector to matrix, but not further

2010-12-28 Thread Martin Maechler
On Tue, Dec 28, 2010 at 19:14, Tony Plate tpl...@acm.org wrote: The abind() function from the abind package is an alternative here -- it can take a list argument, which makes it easy to use with the result of lapply().  It's also able take direction about which dimension to join on. x -

[Rd] \VignetteKeywords{}, for KEYWORDS or for free-tagging?

2010-12-28 Thread Elliot Todd Kleiman
Hi R-devel, [Question]: * Is there a KEYWORDS file to lookup 'keywords' to supply the vignette command, '\VignetteKeywords{}'? -or, is the pkg writer free to tag the vignette using any keywords he/she chooses? i.e., free-tagging. Thank you, + Elliot Kleiman __ San