Dear All,
I want to download some .cvs.gz files from a Github repository, unzip and save as .dta files. I am trying to run:
A .dta file with the specified name is created but its empty! Not sure what I am doing wrong. I have used the same method to previously import .csv files from the same github page... so it could be that something goes wrong in gunzip? I wish had more information to post... but I get no error message... just an empty file.
Will be grateful for any insights others may have to offer.
Sincerely,
Sumedha.
I want to download some .cvs.gz files from a Github repository, unzip and save as .dta files. I am trying to run:
Code:
foreach d in 22 26 29{ 2. if `d'<=9 local space "0" 3. if `d'>9 local space "" 4. clear 5. !gunzip -c "https://githubusercontent.com/COVIDExposureIndices/COVIDExposureIndices/master/lex_data > /county_lex_2020-08-`space'`d'.csv" -> "G:\My Drive\Data\placeiq\rawdata\county_lex_2020-08-`spa > ce'`d'.dta", replace 6. }
Will be grateful for any insights others may have to offer.
Sincerely,
Sumedha.
Comment