I have a dataset I want split into two datasets - One keeping all the rows of the occurrences happening in the US and the other to be all occurences happening that are Non-US. I have a column made to designate if US 1, else 0 so All rows in US are marked 1 and everything else 0. I want these into two datasets. Here is the example of my dataset
id variable1 variable2 variable3 Country US?
1 x x2 x3 US 1
2 x x2 x3 US 1
3 x x2 x3 Mexico 0
4 x x2 x3 US 1
5 x x2 x3 Canada 0
and what I'm wanting would look like this, separating into two datasets based on US or not...
US:
id variable1 variable2 variable3 Country US?
1 x x2 x3 US 1
2 x x2 x3 US 1
4 x x2 x3 US 1
Non-US:
3 x x2 x3 Mexico 0
5 x x2 x3 Canada 0