[R] Using Match in a lookup table

2011-06-28 Thread Michael Pearmain
Hi All, I'm having a few problems using match and a lookup table, previous Googling show numerous solutions to matching a lookup table to a dataset, My situation is slightly different as i have multiple lookup tables, (that i cannot merge - for integrity reasons) that i wish to match against my

Re: [R] Using Match in a lookup table

2011-06-28 Thread David Winsemius
On Jun 28, 2011, at 6:18 AM, Michael Pearmain wrote: Hi All, I'm having a few problems using match and a lookup table, previous Googling show numerous solutions to matching a lookup table to a dataset, My situation is slightly different as i have multiple lookup tables, (that i cannot

Re: [R] Using Match in a lookup table

2011-06-28 Thread David Winsemius
On Jun 28, 2011, at 10:29 AM, Michael Pearmain wrote: Thanks for the idea David, My problem comes from having (say) upto 10 different match files, so nested ifelse whilst would work doesn't seem and elegant solution, Well, you cannot mix text and numeric modes in a vector as you

Re: [R] Using Match in a lookup table

2011-06-28 Thread Michael Pearmain
Thanks for the idea David, My problem comes from having (say) upto 10 different match files, so nested ifelse whilst would work doesn't seem and elegant solution, However if needs must.. Mike On 28 June 2011 14:39, David Winsemius dwinsem...@comcast.net wrote: On Jun 28, 2011, at 6:18 AM,