On Jun 9, 2013, at 7:41 AM, Ulrike Pasda wrote:
> Dear all,
> I have troubles figuring out how to convert missing values from Stata
> (treated as -1 and -2) into NAs in R.
> To read in the dta file I use: data <- read.dta("data.dta")
>
> Is there an option to tell R to convert the -1 and -2 into
Dear all,
I have troubles figuring out how to convert missing values from Stata
(treated as -1 and -2) into NAs in R.
To read in the dta file I use: data <- read.dta("data.dta")
Is there an option to tell R to convert the -1 and -2 into NAs ?
Your help is appreciated. Thanks a lot in advance.
Rik
Thank you very much Jorge, Phil and Stas.
It is not the first time Phil ;-)
2009/4/15 Stas Kolenikov
> You need a full name in quotes:
>
> auto <- read.dta("C:/Stata10/ado/base/a/auto.dta")
>
> works just fine on my computer.
>
> On 4/14/09, Dwayne Blind wrote:
> > Dear R users,
> >
> > I am
You need a full name in quotes:
auto <- read.dta("C:/Stata10/ado/base/a/auto.dta")
works just fine on my computer.
On 4/14/09, Dwayne Blind wrote:
> Dear R users,
>
> I am trying to import a table from STATA, a dta file.
>
> With a table called "table", this is what I do :
>
> library("forei
Dear R users,
I am trying to import a table from STATA, a dta file.
With a table called "table", this is what I do :
library("foreign")
read.dta(table)
It does not work. What am I doing wrong ?
Best Regards,
Dwayne
[[alternative HTML version deleted]]
5 matches
Mail list logo