Long time reader, first time writer :) I have a long list of names and I need to create a loop that essentially puts a value in a column in one df (df1), but each name has a specific value associated with it. I have these values in a different data frame (df2). This is what I have so far and can't figure it out.
for (i in 1:df$Name){ df1$value[i]=df2$value }
but it only takes my list in df2 and copies it into df1$value column. The values dont actually match up with the name it is supposed to be assigned to. Thank you!