Skip to content

Commit 85d2665

Browse files
unclear, and not sure it's correct
1 parent f338567 commit 85d2665

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

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

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Secondary indices are similar to `keys` in *data.table*, except for two major di
6262

6363
* There can be more than one secondary index for a data.table (as we will see below).
6464

65-
#### 1.1 Keyed vs. Indexed Subsetting
65+
#### Keyed vs. Indexed Subsetting
6666

6767
While both **keys** and **indices** enable fast binary search subsetting, they differ significantly in usage:
6868

@@ -82,16 +82,6 @@ setindex(DT, a) # Set index only (no reorder)
8282
DT[.(TRUE), on = "a"] # 'on' is required
8383
```
8484

85-
#### Hierarchy of Lookup Operations
86-
87-
When `on` is specified, `data.table` uses this lookup order:
88-
89-
- Existing keys matching `on` columns
90-
91-
- Pre-built secondary indices matching `on` columns
92-
93-
- Auto-generated secondary index (created if none exist; its optimized ordering is used internally for efficient joins)
94-
9585
### b) Set and get secondary indices
9686

9787
#### -- How can we set the column `origin` as a secondary index in the *data.table* `flights`?

0 commit comments

Comments
 (0)