programming language: R
i have one dataframe that provides experimental observations (several observations correspond to the same participant id) and the other dataframe that includes info about these participants. how can i copy this info from dataframe 2 to dataframe 1 so that whenever the id is the same, the info is added to the corresponding row?
i guess i need something like a loop where i search for matching id's and if they match, the info is copied. but no clue how to do it as i'm totally new to programming T.T