DEPRECATED: Use dplyr to emulate Stata merges.
1 2 3 4 5 6 7 8 9 |
x |
A dataframe to merge ('master' in Stata) |
y |
A dataframe to merge ('using' in Stata) |
multi |
What multiple matches are allowed? One of "1:1", "1:m", "m:1", or "1:1 _n". Note that m:m matches aren't allowed because they're ill-defined. You can use standard dplyr joins if you instead want the cartesian product (equivalent to Stata's joinby). |
by |
Variables to join by (as strings) |
keep |
Observations to keep. Can be specified with Stata words (1, 2, 3, "master", "using", "match") or SQL words ("left", "right", "full", "semi"). |
keepusing |
Variables from the |
... |
Other arguments passed onto the dplyr *_join function. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.