Skip to content
Prev 106123 / 398506 Next

question about for loop

Hi

well, we do not know how is your data organised so it is only a 
guess.
On 14 Dec 2006 at 13:54, Jenny persson wrote:
Date sent:      	Thu, 14 Dec 2006 13:54:27 +0100 (CET)
From:           	Jenny persson <jenny197806 at yahoo.se>
To:             	r-help at stat.math.ethz.ch
Subject:        	[R] question about for loop
based on assumption dat has a column pat.no (numeric)

for (i in dat$pat.no)

{
dat.p<-dat[i,]
# here change all dat to dat.p
# here you shall consult expression or bquote help page
}

# here is the end of your plotting

However you need either to save your plots to some files (see pdf, 
png) or to tell to your progrem to wait with further plotting until 
you look at your plot.

HTH
Petr
Petr Pikal
petr.pikal at precheza.cz