Update for new cross_join() function
This commit is contained in:
		@@ -783,10 +783,11 @@ knitr::include_graphics("diagrams/join/cross.png", dpi = 270)
 | 
			
		||||
Cross joins are useful when generating permutations.
 | 
			
		||||
For example, the code below generates every possible pair of names.
 | 
			
		||||
Since we're joining `df` to itself, this is sometimes called a **self-join**.
 | 
			
		||||
Cross joins use a different join function because there's no distinction between inner/left/right/full when you're matching every row.
 | 
			
		||||
 | 
			
		||||
```{r}
 | 
			
		||||
df <- tibble(name = c("John", "Simon", "Tracy", "Max"))
 | 
			
		||||
df |> left_join(df, join_by())
 | 
			
		||||
df |> cross_join(df)
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
### Inequality joins
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user