Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions vignettes/datatable-intro.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,18 @@ You can also convert existing objects to a `data.table` using `setDT()` (for `da
getOption("datatable.print.nrows")
```

* The option `datatable.prettyprint.char` controls how many characters
are displayed per entry in character columns when printing. Entries
exceeding this limit are truncated with `...` (via `strtrim()`).
You can set it like so:

````{r}
old = options(datatable.prettyprint.char = 5L)
DT = data.table(x = 1:2, y = c("abcdefghij", "klmnopqrstuv"))
DT
options(old) # reset to default
Comment on lines +104 to +107
````

* `data.table` doesn't set or use *row names*, ever. We will see why in the [`vignette("datatable-keys-fast-subset", package="data.table")`](datatable-keys-fast-subset.html) vignette.

### b) General form - in what way is a `data.table` *enhanced*? {#enhanced-1b}
Expand Down
Loading