Re: [R] [Q] a dummy variable used with sapply

2010-08-07 Thread Erik Iverson
On 08/07/2010 01:00 PM, GMail (KU) wrote: Hello, While learning how to manipulate data with R, I found one example that I could not understand. In the following example, the function definition of "maxcor" has an argument named "i" and I don't understand why. Could someone explain why the maxco

[R] [Q] a dummy variable used with sapply

2010-08-07 Thread KU
Hello, While learning how to manipulate data with R, I found one example that I could not understand. In the following example, the function definition of "maxcor" has an argument named "i" and I don't understand why. Could someone explain why the maxcor function definition needs to have this