[R] do.call() and aperm()

Martin Maechler maechler at stat.math.ethz.ch
Thu Oct 23 08:29:30 CEST 2003


>>>>> "Tony" == Tony Plate <tplate at blackmesacapital.com>
>>>>>     on Tue, 21 Oct 2003 10:17:05 -0600 writes:

    Tony> I've also been thinking about how to specify that 'along' should be 
    Tony> length(dim)+1.  At the moment one can specify any number from 0 up to 
    Tony> length(dim)+1, but as you point out you have to spell out length(dim)+1 as 
    Tony> the value for the along argument.  It would possible to make abind() 
    Tony> automatically calculate along=length(dim)+1 when given along=NA, or 
    Tony> along=-1, or along="+1".  Any preferences?

I'd take a string, as your last proposal does,  (since I think
such use should not be confoundable with `integer - use' -- in
order to catch programming errors of the caller).

Martin Maechler <maechler at stat.math.ethz.ch>	http://stat.ethz.ch/~maechler/
Seminar fuer Statistik, ETH-Zentrum  LEO C16	Leonhardstr. 27
ETH (Federal Inst. Technology)	8092 Zurich	SWITZERLAND
phone: x-41-1-632-3408		fax: ...-1228			<><




More information about the R-help mailing list