假设我有:
HouseholdID. PersonID. time. dur. age
1 1 3 4 19
1 2 3 4 29
1 3 4 4 80
2 1 19 20 10
2 1 21 30 18
2 2 21 30 30
我只想合并具有相同HouseholdID,时间和dur的行
输出:
HouseholdID. PersonID. time. dur. age. HouseholdID. PersonID. time. dur. age
1 1 3 4 19 1 2 3 4 29
2 1 21 30 18 2 2 21 30 30