Importing Files

You can download the zip file referenced in this lesson here: https://learndata.net/binge.zip

Key concepts/commands:

  1. cd: set the “working directory,” which is the default folder on your computer in which Stata will look for files and output files

    cd "C:\Users\favero\OneDrive - american.edu\example files"
  2. import excel: read in an Excel document as a dataset

    import excel using binge.xls, firstrow
  3. help: used to access Stata help files, often for a specific command

    help import excel
  4. insheet: old command to read in a plain text file

    insheet using binge.tab
  5. import delimited: a newer way to read in a delimited plain text file

    import delimited binge.csv