[R] how to keep row name if there is only one row selected from a data frame

agent dunham crosspide at hotmail.com
Tue Nov 29 10:42:52 CET 2011


Dear Community: 

Thank you Michael, I did it as you said. However I still have a little
problem with this staff. 

I try my lm's in my df1's variables. Let's say: lm1 <- lm( df1$vi) ~ df1$v1
+ df1$v2)
Then I usally type:   plot(lm1, 1:4) 

I'd like to see in the plots obtained the name of the rownames of df1
instead of the id that R automatically assign (I see 1, 2, 3, .... instead
of the rownames of my dataframe) How can I see the rownames in the plots?

user at host.com

--
View this message in context: http://r.789695.n4.nabble.com/how-to-keep-row-name-if-there-is-only-one-row-selected-from-a-data-frame-tp895594p4118563.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list