How to use r to iterate through a list to find where the item appeared previously, then find a value in that row
17:21 19 Mar 2026

I am new to r and am having a hard time figuring out how to use r to find a specific item, then report back a value from that same row. The same 40 items appear in two columns, but in a random order. I am wondering if there is a way that I can have r check through each item of one list, find where that item appeared in the previous list, then find a value within that row. Once that is done I need to have that value put into a new column that is in the same row as the word that was checked for. I am wondering if there is a good way to go about this as I am having a hard time figuring out how to have r check each item individually, and not just the list as a whole.

iteration matching