I have two dataframes containing data from the same group of 32 subjects. Dataframe (B) has the results of a test ordered by subject number (1-32). I would like to move this data into Dataframe (A) where the rest of my data is and have subject data from (B) link to the corresponding data in (A). Both dataframes have a shared column named (SID) corresponding to the same person. I want to move the Score column from dataframe (B) to (A). How would I do this?
Have in (B):
SID 1, 2, 3, 4...
Score 27, 39, 19, 38...
Have in (A):
SID 1, 2, 3, 4...
Gender M, F, F, M...
Want in (A):
SID 1, 2, 3, 4...
Gender M, F, F, M...
Score 27, 39, 19, 38...
I really would like to have presented this in a better format, sorry about that!