Make a join function safer.
Original join function to wrap
Boolean, should the check be fast or thorough (defaults to fast)
A new join function
The new join function will have arguments
allow_cartesian = FALSE. The goal here is to emulate
merge(), which will
raise an error if rows aren't uniquely identified. Instead, dplyr follows SQL
and does a cartesian join if rows aren't unique.
by variables are required. They cannot be implicit.
... arguments are passed to the dplyr join function.
If fast == TRUE, do the join, then check that the number of rows is not greater than the sum of the row counts of the input tables. If fast == FALSE, make sure that the by variables uniquely identify rows in at least one of the tables before doing the join.
1 2 3 4 5 6 7
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.