Skip to content

Commit

Permalink
Added merge as an alias for join
Browse files Browse the repository at this point in the history
  • Loading branch information
falaki committed Jul 30, 2015
1 parent 5b8bedc commit 8d92012
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions R/pkg/NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ exportMethods("arrange",
"isLocal",
"join",
"limit",
"merge",
"orderBy",
"mutate",
"names",
Expand Down
9 changes: 9 additions & 0 deletions R/pkg/R/DataFrame.R
Original file line number Diff line number Diff line change
Expand Up @@ -1205,6 +1205,15 @@ setMethod("join",
dataFrame(sdf)
})

#' rdname merge
#' aliases join
setMethod("merge",
signature(x = "DataFrame", y = "DataFrame"),
function(x, y, joinExpr = NULL, joinType = NULL) {
join(x, y, joinExpr, joinType)
})


#' UnionAll
#'
#' Return a new DataFrame containing the union of rows in this DataFrame
Expand Down

0 comments on commit 8d92012

Please sign in to comment.