Skip to content

Commit

Permalink
Fix typo in join vignette: Replace "banana" with "soda" (#6798) (#6801)
Browse files Browse the repository at this point in the history
* corrected soda instead of banana

* Drop extra section

* Further improve exposition

---------

Co-authored-by: Michael Chirico <michaelchirico4@gmail.com>
  • Loading branch information
venom1204 and MichaelChirico authored Feb 7, 2025
1 parent 4f7f567 commit 6922a91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vignettes/datatable-joins.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ Products[!ProductReceived,
on = c("id" = "product_id")]
```

As you can see, the result only has 'banana', as it was the only product that is not present in the `ProductReceived` table.
As you can see, the result only has 'soda', as it was the only product that is not present in the `ProductReceived` table.

```{r}
ProductReceived[!Products,
Expand Down Expand Up @@ -390,7 +390,7 @@ Here some important considerations:
- It didn't add the prefix `i.` to any column.

- **Row level**
- All rows from in the `i` table were kept as we never received any banana but row is still part of the results.
- All rows from the `i` table were kept: the soda entry from `Products` that was not matched by any row in `ProductReceived` is still part of the results.
- The row related to `product_id = 6` is not part of the results any more as it is not present in the `Products` table.


Expand Down

0 comments on commit 6922a91

Please sign in to comment.