[R] Issue attaching a dataset
Milan Bouchet-Valat
nalimilan at club.fr
Tue Feb 26 10:55:35 CET 2013
Le lundi 25 février 2013 à 20:26 -0300, Pablo Menese a écrit :
> I use to work whit stata dataframe, so, when I use R I type read.dta
> Until today I do that without any problem, after type:
>
> mydata<-read.dta("C:/dropbox/dataframe.dta")
> attach(mydata)
>
> Everything works great... but today, when I typed:
>
> mydata<-read.dta("C:/dropbox/dataframe.dta")
> attach(mydata)
>
> Appeared:
>
> Error in substr(these, 1L, 6L) : invalid multibyte string at '<f1>'
>
> I searched in google and nothing. Can anyone help me?
To be clear: the error appears when running read.dta(), not when calling
attach(), right? And the C:/dropbox/dataframe.dta that fails today is
different from the one that worked yesterday? Are you able to read it in
Stata?
Also, please provide the output of sessionInfo().
Regards
More information about the R-help
mailing list