I have a tibble where one column like this:
ID
AA10
AA10
AB11
CC09
CC09
I also have a tibble which is a sort of 'dictionary', with 2 columns. It is used to map 'ID' to 'animal':
ID animal
AA10 dog
AB11 cat
CC09 lion
I now want to add a column to the first tibble using this mapping. This would result in:
ID animal
AA10 dog
AA10 dog
AB11 cat
CC09 lion
CC09 lion
What is the best way to achieve this?