Skip to content

Commit d17ff70

Browse files
author
Toby Dylan Hocking
committed
`
1 parent 1c44694 commit d17ff70

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

vignettes/datatable-fread-and-fwrite.Rmd

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ cat(readLines(temp_dt_iso), sep = "\n")
259259
unlink(temp_dt_iso)
260260
```
261261

262-
### 2.3 Handling of bit64::integer64
262+
### 2.3 Handling of `bit64::integer64`
263263

264264
**Full Precision for Large Integers**: `fwrite` writes `bit64::integer64` columns by converting them to strings with full precision. This prevents data loss or silent conversion to double that might occur with less specialized writers. This is crucial for IDs or measurements requiring more than R's standard `32-bit` integer range or `53-bit` double precision.
265265

@@ -271,14 +271,13 @@ if (requireNamespace("bit64", quietly = TRUE)) {
271271
temp_i64_out = tempfile(fileext = ".csv")
272272
fwrite(dt_i64, temp_i64_out)
273273
cat(readLines(temp_i64_out), sep = "\n")
274-
275274
unlink(temp_i64_out)
276275
}
277276
```
278277

279278
### 2.4 Column Order and Subset Control
280279

281-
To control the order and subset of columns written to file, subset the data.table before calling `fwrite()`. The `col.names` argument in `fwrite()` is a logical (TRUE/FALSE) that controls whether the header row is written, not which columns are written.
280+
To control the order and subset of columns written to file, subset the `data.table` before calling `fwrite()`. The `col.names` argument in `fwrite()` is a logical (TRUE/FALSE) that controls whether the header row is written, not which columns are written.
282281

283282
```{r}
284283
dt = data.table(A = 1:3, B = 4:6, C = 7:9)

0 commit comments

Comments
 (0)