[R] For loop

From: Rajasekaramya <ramya.victory_at_gmail.com>
Date: Fri, 27 Jun 2008 13:54:52 -0700 (PDT)


Could you please let me know to use a list in a for loop here geneset is a loop.I am trying to match the names of the list with 1st row of the output.

result<- list()
for(i in 1:length(output)

result[[i]] <- geneset(which(geneset %n% output[,1])) }

Kindly help me out

View this message in context: http://www.nabble.com/For-loop-tp18163665p18163665.html
Sent from the R help mailing list archive at Nabble.com.

R-help_at_r-project.org mailing list
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Sat 28 Jun 2008 - 07:00:57 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 28 Jun 2008 - 09:31:22 GMT.

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

list of date sections of archive