Firstly I am new to R, still in the exploring phase.
I have two lists (A & B) with unequal sizes. I want to add new column in A with rows from B using 2 conditions.
Can anyone suggest me the best way to figure it out.
A looks like this:
Country Booking Changes
AU 2
UK 10
US 3
B looks like this:
Country Type Booking_ Changes
AU CITY 1
AU REGIONAL 1
UK CITY 6
UK REGIONAL 4
US CITY 3
US REGIONAL 0
CA CITY 12
CA REGIONAL 7
Expected output is:
Country Booking Changes City Regional
AU 2 1 1
Help is highly appreciated.
Thanks.