Let's say I have two data frame A and B.
A
products price
apple 3.0
orange 2.5
avocado 4.0
banana 2.5
blueberry 1.5
B
products Color price
banana Yellow NA
Apple Red NA
Avocado Green NA
Apricot Yellow NA
My question is what is the fastest way to grep the product prices from data A and save it in data B, so the result will be like this
B
products Color price
banana Yellow 2.5
Apple Red 3.0
Avocado Green 4.0
Apricot Yellow NA