Ouch, that’s the majority of observations dropped right there. The only way to get them back at this point we need to reload the entire dataset. However, if before dropping we insert the
preserve
command, then we’ll be able to restore the data afterwards:
preserve
drop if wage < 40
restore
As we can see in the result, all of the dropped observations have now been restored.