Displaying 1 result from an estimated 1 matches for "mydatastructur".
Did you mean:
mydatastructure
2009 Jul 25
1
Determine the dimension-names of an element in an array in R
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 = array(0, dim=c(length(b),length(z),length(x),length(d)),
dimnames=list(b,z,x,d))
where,
b=c("S1","S2","S3","S4","S5")
z=c("T1","T2", "T3")
x=c("U1"...