Hy all,

 

I wish to use a variable as rownames for a set of datas.

 

By example :

 

 

> nom<-"toto"

> prenom<-"tutu"

> res<-c(1,2)

> res<-t(res)

> res

     [,1] [,2]

[1,]    1    2

> colnames(res)<-c(nom,prenom)

> res

     toto tutu

[1,]    1    2

> nom

[1] "toto"

> 

 

I wish to call the rowname by the variable name, in this case it would
be < nom > or < prenom > , but if i do that it gives me the name of the
row not the values of it.

 

Is this possible or not?

 

Thks all.

 

COMTE Guillaume

 


	[[alternative HTML version deleted]]


