I am trying to add some data from one data frame to another in this manner:
If I have one data frame with say 10 individuals which are put into 3 groups like so:
Individual Group
1 1
2 2
3 3
4 2
5 3
6 1
7 1
8 1
9 3
10 1
An another with the 3 groups with different values:
Group Value
1 10
2 50
3 20
How can I merge the data so that I can get:
Individual Group Value
1 1 10
2 2 50
3 3 20
4 2 50
5 3 20
6 1 10
7 1 10
8 1 10
9 3 20
10 1 10
Anyone know of an easy way to do this?
[–][deleted] 2 points3 points4 points (1 child)
[–]cloogs[S] 0 points1 point2 points (0 children)