[R] Problem with rio/haven

Bert Gunter bgunter@4567 @end|ng |rom gm@||@com
Tue Jul 30 16:38:24 CEST 2019


My guess: See the check.names argument in ?data.frame. I suspect that
the code is using this -- or something like it -- with its value =
FALSE.

Bert Gunter

"The trouble with having an open mind is that people keep coming along
and sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )

On Tue, Jul 30, 2019 at 1:22 AM Sigbert Klinke
<sigbert using wiwi.hu-berlin.de> wrote:
>
> 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
>
> ______________________________________________
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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