Tony == Tony Plate [EMAIL PROTECTED]
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
Hi everyone
I've been playing with do.call() but I'm having problems understanding it.
I have a list of n elements, each one of which is d dimensional
[actually an n-by-n-by ... by-n array]. Neither n nor d is known in
advance. I want to bind the elements together in a higher-dimensional
I've also been thinking about how to specify that 'along' should be
length(dim)+1. At the moment one can specify any number from 0 up to
length(dim)+1, but as you point out you have to spell out length(dim)+1 as
the value for the along argument. It would possible to make abind()
do.call(abind c(list.of.arrays, list(along=4)))
This reminds me that I had been meaning to submit an enhancement of abind()
that allows the first argument to be a list of arrays so that you could
simply do abind(list.of.arrays, along=4), as I find this is a very common
pattern.
-- Tony Plate
I suggest following APL as that is a well thought out system.
In APL terms there are two operations here called:
- catenation. In abind, this occurs when along = 1,2,...,length(dim)
- lamination. In abind, this occurs when along = length(dim) + 1
however, the latter is really only one case of
:22:28 -0400 (EDT)
Subject: Re: [R] do.call() and aperm()
brbrI suggest following APL as that is a well thought out system.brIn APL terms
there are two operations here called:brbr- catenation. In abind, this occurs when
along = 1,2,...,length(dim)br- lamination. In abind, this occurs when along
Thanks, I appreciate knowing that.
abind() can currently take a fractional value for along, and behaves as per
your description of 'catenation' in APL.
Does APL supply any hints as to what sort of value to give 'along' to tell
abind() to perform 'lamination'?
-- Tony Plate
At Tuesday 01:22
On Tue, 21 Oct 2003, Robin Hankin wrote:
Hi everyone
I've been playing with do.call() but I'm having problems understanding it.
I have a list of n elements, each one of which is d dimensional
[actually an n-by-n-by ... by-n array]. Neither n nor d is known in
advance. I want to bind the