extracting data from class type = by

48 views
Skip to first unread message

colerw

unread,
Aug 15, 2010, 1:12:33 PM8/15/10
to R for Beginners
In the object below the only attributes I see relate to the list

regby <- by(stns2, stns2$station_id, function(x) lm(stns2$avg_temp ~
stns2$year, data=x))


How do you see the regression results separately for each element of
the list.

Dan Davison

unread,
Aug 15, 2010, 2:13:00 PM8/15/10
to colerw, R for Beginners
colerw <col...@gmail.com> writes:

I can't quite work out what exactly you mean here.

Please can you post a reproducible example, and include the printed
output, or whatever is necessary to demonstrate what it is that you are
unsatisfied with. Reproducible means that it doesn't depend on external
data sets such as 'stns2'. Just make up toy data.

Dan

Reply all
Reply to author
Forward
0 new messages