I was thinking of how to reduce the size of my 100GB dataset.
I suspected numeric might take smaller space.
So I experimented first with toy data.
string.dta is 9KB
numeric.dta is 6KB.
Is it generally true that numeric always takes up smaller space?
I suspected numeric might take smaller space.
So I experimented first with toy data.
Code:
set obs 1000 gen test="12345678" save string,replace destring test, replace save numeric, replace
string.dta is 9KB
numeric.dta is 6KB.
Is it generally true that numeric always takes up smaller space?
Comment