Description Usage Arguments Details Value Examples
This function attempts to subsample one data.table without making copies. Well, you could just use DT[, (mycols) := NULL]
(for removal) or DT <- DT[, (mycols), with = FALSE]
for selecting...
1 2 | DTcolsample(DT, kept, remove = FALSE, low_mem = FALSE, collect = 0,
silent = TRUE)
|
DT |
Type: data.table. The data.table to combine on. |
kept |
Type: vector of integers or vector of characters. The columns to select to keep. |
remove |
Type: boolean. Whether the argument |
low_mem |
Type: boolean. Unallows DT (up to) twice in memory by deleting |
collect |
Type: integer. Forces a garbage collect every |
silent |
Type: boolean. Force silence during garbage collection iterations at no speed cost. Defaults to |
Warning: DT
is a pointer only even if you pass the object to this function. This is how memory efficiency is achieved.
The subsampled data.table.
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.