Skip to content
Prev 9225 / 398502 Next

a loop to chang data matrix name

Yu-Ling Wu <yuling5 at yahoo.com> writes:
With a bit more experience, you could probably ensure that your
matrices were in a list to begin with instead of having information
encoded in their name, but try

 for (xi in paste("x",1:50,sep="") {
    if (nrow( get(xi) ) > 20 )
       do someting ......
 }