[R] merge function
Michael Dewey
lists at dewey.myzen.co.uk
Mon Jun 1 16:32:22 CEST 2015
On 01/06/2015 14:46, carol white via R-help wrote:
> Hi,By default the merge function should take the intersection of column names
(if this is understood from by = intersect(names(x), names(y)),
Dear Carol
The by parameter specifies which columns are used to merge by. Did you
understand it to be which columns are retained in the result?
Just a hunch, and if not then you need to give us a toy example.
but it takes all columns. How to specify the intersection of column names?
> Thanks
> Carol
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at 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.
>
--
Michael
http://www.dewey.myzen.co.uk/home.html
More information about the R-help
mailing list