I have an extensive data set and am trying the get a sample meeting several conditions.
I want my sample to show only observations where variable (type) is a, b, or c additionally showing only observations where variable (time) is between years 2010 until 2017 (the dataset has observations from 2010 until 2018).
I have been trying nameDataset=="a", "b", "c" & … But honestly not sure how to tackle this problem.