I work in R and have List A and List B, in which list A <<< B. Both lists share the value of the entry of one column (chr.). I want to add a new column to list B based on entry of list A. I.e in list B, look at column xy for any shared values with list A at column zk, add a new column to list B with the values of list A of column p.
for(i in range(1:length(B[[y]]))){for(j in range(1:length(A[[x]]))){if(A[[x]] == B[[y]]){mutate(B, newvalue = A[[z))}}}