Re: [R] question

From: JeeBee <JeeBee_at_troefpunt.nl>
Date: Sat 05 Aug 2006 - 22:46:29 EST

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. Received on Sat Aug 05 22:50:32 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Sun 06 Aug 2006 - 00:17:41 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.