@@ -236,7 +236,7 @@ dplyr              | merge
 | 
			
		||||
`inner_join(x, y)` | `merge(x, y)`
 | 
			
		||||
`left_join(x, y)`  | `merge(x, y, all.x = TRUE)`
 | 
			
		||||
`right_join(x, y)` | `merge(x, y, all.y = TRUE)`,
 | 
			
		||||
`full_join(x, y)`  | `merge(x, y, all.x = TRUE), all.y = TRUE)`
 | 
			
		||||
`full_join(x, y)`  | `merge(x, y, all.x = TRUE, all.y = TRUE)`
 | 
			
		||||
 | 
			
		||||
The advantages of the specific dplyr verbs is that they more clearly convey the intent of your code: the difference between the joins is really important but concealed in the arguments of `merge()`. dplyr's joins are considerably faster and don't mess with the order of the rows.
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user