Advertisement
Guest User

Untitled

a guest
Apr 24th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. merge(x,y,by=intersect(names(x),names(y)),
  2. by.x=by, by.y=by, all=FALSE, all.x=all, all.y=all,
  3. sort=TRUE, suffixes=c(".x",",y"),
  4. incomparables=NULL...)
  5.  
  6. Explanations about function merge():
  7. x.y : the two data frames used to be combined;
  8. by,by.x, by.y: to designate on which cols the merge is based; the default value is the cols share the same names;
  9. all, all.x, all.y : appoint whether all the rows of x and y should be in outpu;
  10. sort : whether to sort the cols designated;
  11. suffixes: designate the suffixes of the same-name cols other than by;
  12. incomparables: designate which elements in "by" are not included in the merge;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement