Learn R Programming

⚠️There's a newer version (1.16.2) of this package.Take me there.

data.table (version 1.12.2)

Extension of `data.frame`

Description

Fast aggregation of large data (e.g. 100GB in RAM), fast ordered joins, fast add/modify/delete of columns by group using no copies at all, list columns, friendly and fast character-separated-value read/write. Offers a natural and flexible syntax, for faster development.

Copy Link

Version

Install

install.packages('data.table')

Monthly Downloads

1,004,818

Version

1.12.2

License

MPL-2.0 | file LICENSE

Maintainer

Last Published

April 7th, 2019

Functions in data.table (1.12.2)

:=

Assignment by reference
duplicated

Determine Duplicate Rows
first

First item of an object
merge

Merge two data.tables
na.omit.data.table

Remove rows with missing values on columns specified
setorder

Fast row reordering of a data.table by reference
shift

Fast lead/lag for vectors and lists
datatable.optimize

Optimisations in data.table
dcast.data.table

Fast dcast for data.table
print.data.table

data.table Printing Options
IDateTime

Integer based date class
J

Creates a Join data table
data.table-class

S4 Definition for data.table
rbindlist

Makes one data.table from a list of many
setkey

Create key on a data.table
address

Address in RAM of a variable
all.equal

Equality Test Between Two Data Tables
foverlaps

Fast overlap joins
frank

Fast rank
data.table-package

Enhanced data.frame
setops

Set operations for data tables
tables

Display 'data.table' metadata
fsort

Fast parallel sort
rleid

Generate run-length type group id
last

Last item of an object
groupingsets

Grouping Set aggregation for data tables
setDTthreads

Set or get number of threads that data.table should use
fwrite

Fast CSV writer
rowid

Generate unique row ids within each group
patterns

Obtain matching indices corresponding to patterns
split

Split data.table into chunks in a list
setattr

Set attributes of objects by reference
subset.data.table

Subsetting data.tables
setcolorder

Fast column reordering of a data.table by reference
test.data.table

Runs a set of tests.
timetaken

Pretty print of time taken
truelength

Over-allocation access
transpose

Efficient transpose of list
transform.data.table

Data table utilities
as.matrix

Convert a data.table to a matrix
as.xts.data.table

Efficient data.table to xts conversion
fread

Fast and friendly file finagler
set2key

Deprecated.
roll

Rolling functions
setDF

Coerce a data.table to data.frame by reference
as.data.table

Coerce to data.table
tstrsplit

strsplit and transpose the resulting list efficiently
update.dev.pkg

Perform update of development version of a package
as.data.table.xts

Efficient xts to as.data.table conversion
chmatch

Faster match of character vectors
copy

Copy an entire object
like

Convenience function for calling regexpr.
setDT

Coerce lists and data.frames to data.table by reference
melt.data.table

Fast melt for data.table
setNumericRounding

Change or turn off numeric rounding
shouldPrint

For use by packages that mimic/divert auto printing e.g. IRkernel and knitr
special-symbols

Special symbols
between

Convenience functions for range subsets.