Transcription of Title stata.com drop — Drop variables or observations
{{id}} {{{paragraph}}}
drop variables or observationsSyntaxMenuDescriptionRemarks and examplesReferenceAlso seeSyntaxDrop variablesdropvarlistDrop observationsdrop ifexpDrop a range of observationsdrop inrange[ifexp]Keep variableskeepvarlistKeep observations that satisfy specified conditionkeep ifexpKeep a range of observationskeep inrange[ifexp]byis allowed with the second syntax ofdropand the second syntax ofkeep; see [D] or keep variablesData> variables ManagerDrop or keep observationsData>Create or change data> drop or keep observationsDescriptiondropeliminates variables or observations from the data in the same way asdrop, except that you specify the variables or observations to bekept rather than the variables or observations to be drop drop variables or observationsWarning:dropandkeepare not reversible. Once you have eliminated observations , you cannotread them back in again.
Drop or keep observations Data > Create or change data > Drop or keep observations Description drop eliminates variables or observations from the data in memory. keep works the same way as drop, except that you specify the variables or observations to be kept rather than the variables or observations to be deleted. 1
Domain:
Source:
Link to this page:
Please notify us if you found a problem with this document:
{{id}} {{{paragraph}}}