I have a for loop with a control structure using internal for loops.
for (x in 1:100)){
for(y in 1: 10){
for(z in 1:(100/10)){
return as.factor(y)
}
}
}
Is it possible to make this into a sapply or does sapply only work with one loop control. I have searched this site and the web but I have not seen any reference to a more complex control structure using sapply than just one counter