Skip to content

Instantly share code, notes, and snippets.

@AABoyles
Created June 3, 2011 21:20
Show Gist options
  • Save AABoyles/1007187 to your computer and use it in GitHub Desktop.
Save AABoyles/1007187 to your computer and use it in GitHub Desktop.
Converts a Stata .DTA file to a Comma-separated variable file
library(foreign)
write.table(read.dta(file.choose()), file="output.csv", quote = FALSE, sep = ",")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment