Re: [R] simple loop questions

2011-04-24 Thread David Winsemius
On Apr 23, 2011, at 9:34 AM, David Winsemius wrote: On Apr 23, 2011, at 6:31 AM, wrote: Hi all, I am trying to write a loop to return the matched index for a column of values. Here is an simple example of this, A B 0 5 1 2 2 2 3 4 4 1 5 4 6 2 In this case, A is an inde

Re: [R] simple loop questions

2011-04-23 Thread David Winsemius
On Apr 23, 2011, at 6:31 AM, wrote: Hi all, I am trying to write a loop to return the matched index for a column of values. Here is an simple example of this, A B 0 5 1 2 2 2 3 4 4 1 5 4 6 2 In this case, A is an index column for B. Now I have this new column C with jus

[R] simple loop questions

2011-04-23 Thread xueke
Hi all, I am trying to write a loop to return the matched index for a column of values. Here is an simple example of this, A B 0 5 1 2 2 2 3 4 4 1 5 4 6 2 In this case, A is an index column for B. Now I have this new column C with just two values of 2 and 4. I want to match