Skip to content

Commit e46f338

Browse files
committed
updated difference
1 parent 9724f41 commit e46f338

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

vignettes/datatable-joins.Rmd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -726,6 +726,7 @@ Products[ProductPriceHistory,
726726
- The key difference between `last()` and `tail()` is:
727727
- `last(x):` Returns the last element of x, including NA if it's the last element.
728728
- `tail(x, 1):` Also returns the last element but works more consistently with different object types.
729+
- For lists, `last(list)` returns the last element, while `tail(list, 1)` returns a list of length 1 containing the last element.
729730

730731
```{r Example_Behavior}
731732
# Test 1: Simple vector with NA at the end

0 commit comments

Comments
 (0)