Re: [R] nesting multiple for loops

2011-04-15 Thread Ben Hunter
Thanks Petr, Actually, I figured it out last night. Please read on only if you're sort of interested. You're absolutely right, I hastily changed my function to be more 'readable' without thinking that I was using a name that was already a function. What I wanted was a cross-tabulation of f1 and

[R] nesting multiple for loops

2011-04-14 Thread Ben Hunter
Hi everyone. I am quite frustrated that this doesn't work, as all the functions within work fine by themselves. I'd also like any pointers to how to avoid 'for' loops in my code. I understand it's less than desirable, but I'm still quite new and use them a lot. I have a few wide datasets (90 to 1