Skip to content

Commit 046c9da

Browse files
tweak
1 parent a8a03e9 commit 046c9da

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

vignettes/datatable-secondary-indices-and-auto-indexing.Rmd

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,10 +192,12 @@ flights[.("JFK", "LAX"), on = c("origin", "dest")][1:5]
192192
* Since the time to compute the secondary index is quite small, we don't have to use `setindex()`, unless, once again, the task involves repeated subsetting on the same column.
193193

194194
* For clarity/readability, it might help to name the inputs in `i`, e.g.,
195+
195196
```{r}
196197
flights[.(origin = "JFK", dest = "LAX"), on = c("origin", "dest")]
197198
```
198-
This makes it clear which values correspond to which key.
199+
200+
This makes it clear which values correspond to which element of `on`.
199201

200202
### b) Select in `j`
201203

0 commit comments

Comments
 (0)