Announcement

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

  • Google Drive

    Hi Statalister,

    I connect to a topic issued yesterday. So basically I have a Mac and would like to store a series of datasets (.dta format) into google drive. To do that of course I need the path which apparently is not given by Drive (at least I cannot find the path in the usual way: /Users/John_Smith/...). Is there a way to save, replace .dta files into google drive? And if not, is there an alternative way of storing hundreds (i.e. about 800) of datasets somewhere (not Dropbox) in a way that they do not occupy space in my PC?

    To be more concrete, what I am doing is the following loop which stores databases for each couple:

    Code:
    local ctry "aitaly belgium france germany greece ireland netherlands poland portugal sweden uk"
    local ctrytwo "aitaly belgium france germany greece ireland netherlands poland portugal sweden uk"
    
    tab molecule, gen(dummy_mol_)
    levelsof molecu, local(levels)
    
    *THE FOLLOWING IS THE RIGHT LOOP:
    foreach l of local levels {
        foreach i in `ctry'{ 
            foreach d in `ctrytwo'{
                use "/Users/federiconutarelli/Dropbox/dato_per_molecola/`l'_generics.dta", clear
                keep if ctry == "`i'" | ctry == "`d'"
                if "`i'" == "`d'"{
                display as err "Countries are equal"
                continue
                }
                save "/Users/federiconutarelli/Dropbox/terzo_lavoro/`l'_`i'_`d'.dta", replace
            }
        }
    }
    Now the save statement saves them on Dropbox, the problem being that the computer slows down a lot and takes a lot to store them (also occupying a lot of space, which prevents me from doing anything else in Dropbox). I would like to do something like:

    Code:
     save "/Users/federiconutarelli/Google Drive/`l'_`i'_`d'.dta", replace
    which I read from another issue that is infeasible.

    Thank you,

    Federico
Working...
X