[R] How to label a "vector"

cruz cruadam at gmail.com
Wed Oct 1 15:38:44 CEST 2008


Hi,

I have an object, Z:

> typeof(Z)
[1] "list"

It looks like:

     [,1] [,2] [,3]
[1,]  1    1    1
[2,]  1    1    1

How can it label the Rows and Columns with Text? so that it looks like:

     Y1  Y2  Y3
X1   1    1    1
X2   1    1    1



Thanks,
cruz



More information about the R-help mailing list