I have a data set with a unique alphanumeric identifier and associated information: a quality score [1-5], island abbreviation, etc.
ex.
UniqueID Score Island1 Island2
MSI1234 1 MSI MSI
MSI4567 4 MSI EER
MSI456789 3 MR MSI
I have a second data set with unique alphanumeric identifiers and known sex information.
ex.
UniqueID Sex
MSI1234 F
MSI124011 F
MR2344 M
Some of the individuals in the second data set will have information in the first data set. I would like to create a third data set of individuals found in both datasets. I would like all of the information in the first data set plus a column for sex.
ex.
UniqueID Score Island1 Island2 Sex
MSI1234 1 MSI MSI F
Is there a way to do this in R or excel? I'm open to any option, but I'm new to this kind of data manipulation.
Thanks!!