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

______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to