I'm trying to get a loop to pull only states with populations between 200,000 and 250,000. How can I do this with next and break statements? I feel like I have the right idea (population > 200,000) and (population < 250,000), but it's not working out for me.
The dataset tracks how much state populations have shifted from one year to the next, and has columns with each year (like for 1800, the year I'm looking at).
There are also columns for each state.
I'm not sure what I expected - a few states? tons of states? But instead I keep getting errors about my else if statement - saying that else was found in an area where it wasn't expected to be.