Skip to content
Prev 131076 / 398506 Next

Odp: Help with a Loop

Hi

r-help-bounces at r-project.org napsal dne 02.12.2007 23:33:47:
Any
Lets try it without loop.

Does this

lapply(split(data[,4:3], data$Participant), function(x) coef(lm(x)))

give you results you want?

If yes, just put it in some object e.g. lll <- and 

do.call(rbind, lll)

gives you a table output.

Regards
Petr
Drug
need to
sample
the
http://www.R-project.org/posting-guide.html