Displaying 1 result from an estimated 1 matches for "otherlooping".
2005 Dec 11
0
how to extract the row names of a matrix using for loop or otherlooping
lapply and rownames will do what you want
> class(t)
[1] "list"
> lapply(t,rownames)
[[1]]
[1] "ca" "cd"
[[2]]
[1] "cb"
[[3]]
[1] "cc"
======= 2005-12-11 01:17:47 伳侜佋佢伬伌佇伵佒佇佇伌伒伬仯伜=======
>Hi all,
> I have a matrix and its cluster...and i like to extract the row names of each cluster....but using the for loop or some other looping