Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Reading multiple .csvs from a folder


From   Vianney <vbrandicourt@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: Reading multiple .csvs from a folder
Date   Wed, 16 Nov 2011 15:03:02 -0500

Hello collective wisdom,

I was wondering if STATA has a means of reading all .csvs (or similar
formats) from within a designated folder.

Namely, instead of having to designate specific .csv *filenames*, I'd
like to be able to designate a *folder* (and potentially apply a regex
or regex-like filter for choosing specific .csvs from within said
folder).

I am essentially looking for the STATA equivalent of Python's GLOB [
http://docs.python.org/library/glob.html ;]

Many thanks for your insights!

Best regards,
Vianney

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index