Displaying 1 result from an estimated 1 matches for "tp3992089p3992089".
2011 Nov 04
4
nested "for" loops
...{
for( j in V2) {
for( k in V3){
l<- i*j*k
}
}
}
l
Then " l<- i*j*k " is number and not vector(of all multiplications of all
the combinations) , and is 3*4*6 = 72.
How can I fix the code?
--
View this message in context: http://r.789695.n4.nabble.com/nested-for-loops-tp3992089p3992089.html
Sent from the R help mailing list archive at Nabble.com.