let us know what you want to do because the beauty of R is that, in many cases, you may not have to loop.
----- Original Message ----- From: "Wensui Liu" <[EMAIL PROTECTED]> To: <r-help@stat.math.ethz.ch> Sent: Saturday, August 26, 2006 1:06 PM Subject: [R] for() loop question > Dear Lister, > > If I have a list of number, say x<-c(0.1, 0.5, 0.6...), how to use a for() > to loop through each number in x one by one? > > Thank you so much! > > wensui > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > ______________________________________________ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.