Hi,
I can not read in a data set from Stata. When I try I get the first
error. If I follow the advice then I get "unused argument error".
How do I use .name_repair?
Best Sigbert
----
> library("haven")
> packageVersion("haven")
[1] ‘2.1.1’
> xp <- read_dta("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..
> mynr <- function(nms) { }
> xp <- read_dta("XXX.dta", .name_repair=mynr)
Fehler in read_dta("XXX.dta", .name_repair = mynr) :
unbenutztes Argument (.name_repair = mynr)
--
https://hu.berlin/sk
https://hu.berlin/mmstat3
______________________________________________
R-help@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.