s-news
[Top] [All Lists]

Re: combining arrays

To: Dom Peters <peters_dom@hotmail.com>
Subject: Re: combining arrays
From: Tony Plate <tplate@blackmesacapital.com>
Date: Wed, 13 Apr 2005 09:48:18 -0600
Cc: s-news@lists.biostat.wustl.edu
In-reply-to: <BAY17-F20EB3E0A604E687FA773F2F3340@phx.gbl>
References: <BAY17-F20EB3E0A604E687FA773F2F3340@phx.gbl>
User-agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
The 'abind' function might do what you want -- it's a generalization of cbind and rbind that works with multidimensional arrays. You can get the code from the R package 'abind' -- it works in S-PLUS too.

-- Tony

Dom Peters wrote:

Dear members,

Is there an easy way to combine 2 arrays of same dimensions, so that the cells in the new array still have the same dimnames, using array(c(array1,array2),...) moves the cells into the wrong positions?

Thanks for any help.

Dom

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

--------------------------------------------------------------------
This message was distributed by s-news@lists.biostat.wustl.edu.  To
unsubscribe send e-mail to s-news-request@lists.biostat.wustl.edu with
the BODY of the message:  unsubscribe s-news



<Prev in Thread] Current Thread [Next in Thread>