[R] How to reference or sort rownames in a data frame

2007-05-27 Thread Robert A. LaBudde
As I was working through elementary examples, I was using dataset plasma of package HSAUR. In performing a logistic regression of the data, and making the diagnostic plots (R-2.5.0) data(plasma,package='HSAUR') plasma_1- glm(ESR ~ fibrinogen * globulin, data=plasma, family=binomial())

Re: [R] How to reference or sort rownames in a data frame

2007-05-27 Thread Gabor Grothendieck
On 5/27/07, Robert A. LaBudde [EMAIL PROTECTED] wrote: As I was working through elementary examples, I was using dataset plasma of package HSAUR. In performing a logistic regression of the data, and making the diagnostic plots (R-2.5.0) data(plasma,package='HSAUR') plasma_1- glm(ESR ~

Re: [R] How to reference or sort rownames in a data frame

2007-05-27 Thread Robert A LaBudde
Thanks, Gabor. I have to say I wouldn't have figured this out easily. I'd summarize your comments by: 1. Remember to use arrays of logicals as indices. 2. Remember %in% for combination matches. 3. Remember which() to get indices. It is the small tasks which appear most difficult to figure out