I use a dataset with 16 variables and 80.000 observations.
The variable "syear" describes the year of the observation (2008,2012,2016). The variable "pid" describes the unique person ID.
As you can see in the screenshot, it is possible that persons only participated in one or two years. I only want to keep observations from persons, who participated in all three years. In the screenshots this would be the pid 901 and 1501.
How do I filter my dataset by this condition?