[R] .dta from e-mail

Dennis Murphy djmuser at gmail.com
Sat Aug 6 04:21:35 CEST 2011


library('foreign')
d <- read.dta('yourfile.dta')

read.dta() reads in files having "Stata version 5–11 binary format
into a data frame". Make sure you read the help page ?read.dta after
you load the foreign package and before you try to read in the data.

HTH,
Dennis

On Fri, Aug 5, 2011 at 6:35 PM, Gabriel Cepaluni <gabi.cepal at gmail.com> wrote:
> I got a .dta extension file by e-mail, but I can't save it in my computer
> and open it in R. How can I do it?
>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



More information about the R-help mailing list