.dta is usually a State data file. Thou would be able to read it in R with the
function read.dta in the package foreign.
Abhijit
Sent from my HTC Aria⢠smartphone on AT&T
- Reply message -
From: "Gabriel Cepaluni"
Date: Fri, Aug 5, 2011 9:35 pm
Subject: [R] .dta from
dta is a very generic extension, so that is not enough information. I recommend
saving it and opening it with a text editor. If it is binary, you will need to
ask the sender how to open it.
---
Jeff Newmiller The . .
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
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@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read th
4 matches
Mail list logo