I am trying to append this dataset but am stumbling into so many issues. At first I tried using this code and it did not work
Then I tried a loop and that did not work either, it just made the dataset all glitchy and unusable (see image)
At this point I am getting too frustrated so will take a pause. But if anyone can show me how to do this (I have attached a zipfile with dummy numbers) please let me know.
Code:
xls2dta , clear generate (newvar1): append using "/Users/brady/Desktop/TN" variable A is str11 in master but byte in using data You could specify append's force option to ignore this string/numeric mismatch. The using variable would then be treated as if it contained "".
Code:
local filenames: dir "." files "*.xls" drop _all tempfile building quietly save `building', emptyok foreach f of local filenames { import delim using `"`f'"', clear gen source_file = `"`f'"' append using `building' save `"`building'"', replace } variable v117 is byte in master but str2 in using data You could specify append's force option to ignore this numeric/string mismatch. The using variable would then be treated as if it contained numeric missing value.
Comment