Re: [R] Mapping one vector to another

2012-06-13 Thread Geoff Leyland
On 13/06/2012, at 12:35 AM, Rui Barradas wrote: > Hello, .. On 13/06/2012, at 12:36 AM, Jean V Adams wrote: > Geoff, .. Thanks Rui and Jean, merge appears to be what I was looking for, and much better than my workaround for loop. __ R-help@

[R] Mapping one vector to another

2012-06-11 Thread Geoff Leyland
Hi, I'm new here, I'd like to map a set of values in a data frame to another set of values in another frame (think a c++ map<>, a python dict or a hash lookup) Specifically, I have a data frame of information about trading periods in the NZ electricity market. For each period I have information