[R] automatically generate the output name of my "for" loops

jiliguala jiliguala at mail.com
Sun Jun 12 18:17:45 CEST 2011


Hello R users, 

I am new to R and am having difficulty with the output name of my "for"
loops. 

here is the problem:


for (i in c(1:100))
{
the name of the groups <- which(k1$cluster==i)
}

how can it automatically generate the name for 100 cluster? what should i
put in the bold letter place.

really thank you for helping me

Daniel 

--
View this message in context: http://r.789695.n4.nabble.com/automatically-generate-the-output-name-of-my-for-loops-tp3592160p3592160.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list