Skip to content

Commit 91ca85a

Browse files
authored
Update datatable-intro.Rmd
1 parent 1999bbd commit 91ca85a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vignettes/datatable-intro.Rmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ setkeyv(dt, "x")
274274

275275
* **Logical subsetting: `dt[x == "d"]`**
276276

277-
This performs a plain subset operation that does not find any matching rows and thus returns an empty data.table.
277+
This performs a standard subset operation that does not find any matching rows and thus returns an empty `data.table`.
278278

279279
```r
280280
dt[x == "d"]
@@ -313,7 +313,7 @@ ans
313313

314314
We could have accomplished the same operation by doing `nrow(flights[origin == "JFK" & month == 6L])`. However, it would have to subset the entire `data.table` first corresponding to the *row indices* in `i` *and then* return the rows using `nrow()`, which is unnecessary and inefficient. We will cover this and other optimisation aspects in detail under the *`data.table` design* vignette.
315315

316-
### g) Great! But how can I refer to columns by names in `j` (like in a `data.frame`)? {#refer_j}
316+
### h) Great! But how can I refer to columns by names in `j` (like in a `data.frame`)? {#refer_j}
317317

318318
If you're writing out the column names explicitly, there's no difference compared to a `data.frame` (since v1.9.8).
319319

0 commit comments

Comments
 (0)