From: Chris Kopp <kopp_at_soz.unibe.ch>

Date: Mon 24 Jul 2006 - 19:31:02 EST

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. Received on Mon Jul 24 19:37:08 2006

Date: Mon 24 Jul 2006 - 19:31:02 EST

The following is a very basic and beginner's question on loops.

I have been able to do this for one value of "class" in the following way

k_1<-answer[class==1]

write.table(k_1, "answer_1.txt")

k_1<-answer[class==1]

write.table(k_1, "answer_1.txt")

k_2<-answer[class==2]

write.table(k_2, "answer_2.txt")

for (i in 1:78) k_i<-answer[class==(i)]

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. Received on Mon Jul 24 19:37:08 2006

Archive maintained by Robert King, hosted by
the discipline of
statistics at the
University of Newcastle,
Australia.

Archive generated by hypermail 2.1.8, at Mon 24 Jul 2006 - 22:19:13 EST.

*
Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help.
Please read the posting
guide before posting to the list.
*