[R] Problem with rio/haven

Sigbert Klinke @|gbert @end|ng |rom w|w|@hu-ber||n@de
Tue Jul 30 10:21:49 CEST 2019


Hi,

I got the following error when reading a Stata file:

 > library("rio")
 > x <- import('XXX.dta')
Fehler in df_parse_dta_file(spec, encoding) :
   Evaluation error: Column name `Merge` must not be duplicated.
Use .name_repair to specify repair.

I understand that the column name "Merge" appears at least twice in the 
Stata file.

My problem is that I have created the data as data.frame in R and saved 
with the export command of rio. How could it be that I can save a data 
set but I'am not able to read in again?

Sigbert

-- 
https://hu.berlin/sk
https://hu.berlin/mmstat3



More information about the R-help mailing list