Skip to content
Prev 302750 / 398503 Next

dimnames in array

On Aug 8, 2012, at 8:43 AM, aleksandr russell wrote:

            
> 	colnames(data11)=c("one","two"); str(data11)
  num [1:41, 1:2, 1:2] 0.29 0.29 0.29 0.29 0.29 0.29 0.29 0.29 0.29  
0.29 ...
  - attr(*, "dimnames")=List of 3
   ..$ : NULL
   ..$ : chr [1:2] "one" "two"
   ..$ : NULL
> str(data11)
  num [1:41, 1:2, 1:2] 0.29 0.29 0.29 0.29 0.29 0.29 0.29 0.29 0.29  
0.29 ...
  - attr(*, "dimnames")=List of 3
   ..$ : NULL
   ..$ : chr [1:2] "V" "R"
   ..$ : chr [1:2] "one" "two"

Dimnames is a list with three lists.
You are not offering code and data that would help understand the  
problem.
Yes. R 2.15.1 has added paste0() which is basically paste(... , sep="").