I want to merge 6 datasets that have an ID variable. I want to have one data set with ID values common to all datasets.
I know this is an easy fix, but I haven;t come across a help topic
ex.
id month sbp dpb
D1 3 40 40
D1 4 10 10
D1 3 20 20
D2 4 30 20
D3 5 10 40
D1 3 40 40
id month sbp dpb
D1 3 40 40
D1 4 10 10
D2 3 20 20
D4 4 30 20
D3 5 10 40
D1 3 40 40
final
id month sbp dpb
D1 3 40 40
D1 4 10 10
D1 3 20 20
D2 4 30 20
D3 5 10 40
D1 3 40 40
D1 3 40 40
D1 4 10 10
D2 3 20 20
D3 5 10 40
D1 3 40 40
D4 is omitted from final dataset