Hi Jessica,

I think you want to use names()

See:
?names
?colnames (or rownames)

If not, it's perhaps a good idea to send us a more complete example.
JeeBee.


On Fri, 04 Aug 2006 17:12:24 +0200, Jessica G. wrote:
> How to convert a rowname vector of numbers into a real column of the matrix,
> 
> My problem is that I applied a rowsum function on a matrix.
> Then I get a matrix in which the names of the columns are the values of the 
> group (numbers)
> Now I need to make calculation on the groups row.
> How to convert this vector of (rownames) into a real column in the matrix ?

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to