[R] Looping

2007-10-24 Thread yiferic
Is there a way to generate variables with names like var1, var2, var3? Right now I've been resorting to using either a cat function to string it together or to pre-generate a list and having it select from list[x] as it loops. Help would be much appreciated. Thanks! __

[R] Matrix manipulation

2007-10-22 Thread yiferic
Hi everyone, suppose I have a 2D matrix, is there a command to snip out a specific row/column and then remerge the remaining columns/rows back into a contiguous matrix? I will need to repeat this operation quite a bit(reverse selection). Thanks for any insights you can offer. Yifei