gth(d),length(e)),dimnames=list(a,c,d,e))
>
> z<-apply(as.matrix(a),c(1,2),function(f1)
>apply(as.matrix(d),c(1,2),function(f2)
>
>
> apply(DataArray_1[dimnames(DataArray_1)[[1]]==f1,,dimnames(DataArray_1)[[3]]==f2,],1,
> function(d1)
>
>
> apply(DataArray_2[dimna
hristian.
>
> Poersching schrieb:
> > Hey,
> > I think I have a solution for your problem:
> >
> > Correl<-apply(DataArray_1,1:3, function(d1)
> > apply(DataArray_2,c(2,1,3), function(d) cor(d1,d))
> > )
> > Correl<-Correl[1:4,,,]
> > dimnames
alternative way-outs to
solving my problem. That's why I tried with apply functions (sapply)assuming
that this might work out faster even fractionally as compared to for-loop.
Cheers,
Sauvik
On Mon, Jul 27, 2009 at 12:28 AM, Poersching wrote:
> Sauvik De schrieb:
>
> Hi:
> Lots o
ataArray_2[...],
use="pairwise.complete.obs"))
So it would be of great help if you could kindly specify how to utilise your
function "findIndex" in ...
Apologies for all this!
Thanks & Regards,
Sauvik
On Sun, Jul 26, 2009 at 3:54 PM, Poersching wrote:
> Sauvik De schrieb:
&g
f Correl (that I have mentioned as "..." in the above
code)
My sincere thanks for your valuable time & suggestions.
Many Thanks & Kind Regards,
Sauvik
On Sun, Jul 26, 2009 at 5:26 AM, Gabor Grothendieck wrote:
> Try this:
>
> > ix <- c(1, 3, 4, 2)
> > map
Hi:
How can I extract the dimension-names of a pre-defined element in a
multidimensional array in R ?
A toy example is provided below:
I have a 4-dimensional array with each dimension having certain length. In
the below example, "mydatastructure" explains the structure of my data.
mydatastructure
6 matches
Mail list logo