[R] A whine and a request
Jim Lemon
jim at bitwrit.com.au
Fri Jun 16 03:12:26 CEST 2006
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
More information about the R-help
mailing list