Re: [R] A whine and a request

From: Jim Lemon <jim_at_bitwrit.com.au>
Date: Fri 16 Jun 2006 - 11:12:26 EST

John Vokey wrote:
> Thanks. But, as is common with e-mail communication, nobody seems to
> have understood the issue I was whining about.

Indeed, I was totally wrong.

> So, here is an actual
> case...
>
> Now, what I want is to regress the proportions of column(1)/(column(0)
> +column(1)) on x. I can accomplish the proportions as follows:
> props=tab[,2]/(tab[,1]+tab[,2]). So, I want to regress props on the
> *row labels* of tab. But I can't seem to get them to be anything *but*
> row labels. For example,
> > tab[,0]

>...
> extracts the row labels, *but still as labels*, not data.

as.numeric(rownames(tab))

Jim



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 Received on Thu Jun 15 21:17:25 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 Fri 16 Jun 2006 - 00:11:43 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.