Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Import .csv files from zipped (or other form of compressed) folder without having to unzip it manually

    If I have a .dta file compressed in a .zip folder, I know that I can access it without having to manually unzip by using the -zipuse- command from -zipsave-, and even specify a varlist and restrict observations bring in to Stata.

    Is there something equivalent for a .csv file inside a .zip folder? I have several (~60) somewhat large (~ 5GB) .csv files inside compressed folders. It would be great if I could access a specific varlist and subset of observations from that data without having to manually unzip the folders and occupy so much space on my disk.

    I'm using Stata18 on Windows 10 64-bit.

  • #2
    From what I can tell, Stata allows you to access files in a .zip by unzipping and storing the file in a temporary folder behind the scenes. Temporary might be a bit of a misnomer. I could not tell you what kind of routine Stata uses to clean up temporary folders behind the scenes.

    Comment


    • #3
      You'll need to unzip it manually unfortunately. Trust me, I've been there.

      Comment

      Working...
      X