Hello, below is a small dataset,
clear
input str80 name int id
"F-000509" 1
"F-000703" 2
"Future Bond Election" 3
"F-000708" 4
"F-000709" 5
"F-000799" 6
"F-000808" 7
"F-000809" 8
"F-000899" 9
end
I want to drop the data with the id=3,6,9. Because the real dataset is very large, the id can range from 1 to 10000000.
So, I need Stata code to do this.
Can someone help me in Stata?
Thank you!
clear
input str80 name int id
"F-000509" 1
"F-000703" 2
"Future Bond Election" 3
"F-000708" 4
"F-000709" 5
"F-000799" 6
"F-000808" 7
"F-000809" 8
"F-000899" 9
end
I want to drop the data with the id=3,6,9. Because the real dataset is very large, the id can range from 1 to 10000000.
So, I need Stata code to do this.
Can someone help me in Stata?
Thank you!

Comment