[R] arguments in merge() not accepted

Lukas Kohl lukas.kohl at univie.ac.at
Tue Jan 17 03:11:37 CET 2012


dear r-listers,

this may be some rally stupid mistake, but googling didn't help me any further:

> merge(data1, data2, all.x=T)

gives back:
: Error in merge(data1, data2, all.x = T) :
:  unused argument(s) (all.x = T)
[same with any other argument i try to put in..]

although the man page states

>merge(x, y, by = intersect(names(x), names(y)),
>      by.x = by, by.y = by, all = FALSE, all.x = all, all.y = all,
>      sort = TRUE, suffixes = c(".x",".y"), incomparables = NULL, ...)

[etc..]

is this a bug in the merge() function or did i miss something important?



R version 2.12.1 (2010-12-16)



More information about the R-help mailing list