1
0
Fork
You've already forked data.table.ru
0
forked from aitap/data.table.ru
Russian translation of the data.table CRAN package
  • R 63.3%
  • C 35.4%
  • Batchfile 1.2%
Find a file
Michael Chirico b8d5f83270
Setdroplevels for in-place removal of unused levels ( #6316 )
* Add setdroplevels() to handle droplevels.data.table()
* Export it
* Some tests
* NEWS
2024年07月30日 05:17:26 -07:00
.ci adding an atime test case; groupby with dogroups (R expression) #PR4558 ( #6288 ) 2024年07月29日 15:49:26 -04:00
.dev Set default for PROJ_PATH to '.' if unset ( #6307 ) 2024年07月24日 14:46:19 -07:00
.devcontainer Set r-devel-gcc as the default container ( #5861 ) 2023年12月28日 04:51:13 -08:00
.github Consistently set R_LIBS_USER across steps ( #6292 ) 2024年07月17日 07:15:46 -07:00
.graphics add favicons to webpage ( #5561 ) 2023年12月13日 07:47:06 +01:00
inst Setdroplevels for in-place removal of unused levels ( #6316 ) 2024年07月30日 05:17:26 -07:00
man Setdroplevels for in-place removal of unused levels ( #6316 ) 2024年07月30日 05:17:26 -07:00
po Update Chinese translations for release ( #6281 ) 2024年07月26日 17:59:18 -07:00
R Setdroplevels for in-place removal of unused levels ( #6316 ) 2024年07月30日 05:17:26 -07:00
src set() adds new cols when rows aren't updated ( #6204 ) 2024年07月29日 13:45:26 -07:00
tests Continued ci-occasional debugging: tracing error ( #6147 ) 2024年05月21日 11:11:01 -07:00
vignettes add !is.na to subset function example ( #6317 ) 2024年07月28日 13:11:39 -07:00
.gitattributes get Rraw files to highlight well on GitHub ( #4811 ) 2021年05月10日 17:08:11 -06:00
.gitignore add zed editor to ignores ( #6305 ) 2024年07月21日 07:46:15 -07:00
.gitlab-ci.yml Set _R_CHECK_COMPILATION_FLAGS_KNOWN_ to suppress R CMD check NOTE ( #6327 ) 2024年07月29日 22:50:25 +02:00
.Rbuildignore add zed editor to ignores ( #6305 ) 2024年07月21日 07:46:15 -07:00
_pkgdown.yml links to blog and fosstodon ( #5852 ) 2023年12月22日 10:29:50 +01:00
cleanup Detect OpenMP support ( #3984 ) 2019年12月19日 23:52:51 -08:00
CODEOWNERS Added entries for CI/GHA-based performance testing ( #6123 ) 2024年05月03日 05:36:29 -07:00
configure MacOS: fix linker flags for SHLIB feature test ( #6283 ) 2024年07月16日 17:50:38 -07:00
DESCRIPTION add orcid for Ben ( #6300 ) 2024年07月18日 10:29:55 -04:00
GOVERNANCE.md rename team maintainers -> committers in GOVERNANCE ( #5946 ) 2024年02月21日 22:20:39 -08:00
LICENSE License change from GPL to MPL ( #2456 ) 2017年11月06日 15:13:58 -08:00
Makefile 1.15.0 on CRAN. Bump to 1.15.99 ( #5938 ) 2024年02月17日 07:37:09 +00:00
NAMESPACE Setdroplevels for in-place removal of unused levels ( #6316 ) 2024年07月30日 05:17:26 -07:00
NEWS.0.md Fix misspellings ( #6191 ) 2024年06月22日 21:41:18 -07:00
NEWS.1.md Fix misspellings ( #6191 ) 2024年06月22日 21:41:18 -07:00
NEWS.md Setdroplevels for in-place removal of unused levels ( #6316 ) 2024年07月30日 05:17:26 -07:00
README.md Restore GHA on Windows ( #6022 ) 2024年04月03日 08:56:52 -07:00

data.table

CRAN status R-CMD-check Codecov test coverage GitLab CI build status downloads CRAN usage BioC usage indirect usage

data.table provides a high-performance version of base R's data.frame with syntax and feature enhancements for ease of use, convenience and programming speed.

Why data.table?

  • concise syntax: fast to type, fast to read
  • fast speed
  • memory efficient
  • careful API lifecycle management
  • community
  • feature rich

Features

  • fast and friendly delimited file reader: ?fread , see also convenience features for small data
  • fast and feature rich delimited file writer: ?fwrite
  • low-level parallelism: many common operations are internally parallelized to use multiple CPU threads
  • fast and scalable aggregations; e.g. 100GB in RAM (see benchmarks on up to two billion rows)
  • fast and feature rich joins: ordered joins (e.g. rolling forwards, backwards, nearest and limited staleness), overlapping range joins (similar to IRanges::findOverlaps), non-equi joins (i.e. joins using operators >, >=, <, <=), aggregate on join (by=.EACHI), update on join
  • fast add/update/delete columns by reference by group using no copies at all
  • fast and feature rich reshaping data: ?dcast (pivot/wider/spread) and ?melt (unpivot/longer/gather)
  • any R function from any R package can be used in queries not just the subset of functions made available by a database backend, also columns of type list are supported
  • has no dependencies at all other than base R itself, for simpler production/maintenance
  • the R dependency is as old as possible for as long as possible, dated April 2014, and we continuously test against that version; e.g. v1.11.0 released on 5 May 2018 bumped the dependency up from 5 year old R 3.0.0 to 4 year old R 3.1.0

Installation

install.packages("data.table")
# latest development version (only if newer available)
data.table::update_dev_pkg()
# latest development version (force install)
install.packages("data.table", repos="https://rdatatable.gitlab.io/data.table")

See the Installation wiki for more details.

Usage

Use data.table subset [ operator the same way you would use data.frame one, but...

  • no need to prefix each column with DT$ (like subset() and with() but built-in)
  • any R expression using any package is allowed in j argument, not just list of columns
  • extra argument by to compute j expression by group
library(data.table)
DT = as.data.table(iris)
# FROM[WHERE, SELECT, GROUP BY]
# DT [i, j, by]
DT[Petal.Width > 1.0, mean(Petal.Length), by = Species]
# Species V1
#1: versicolor 4.362791
#2: virginica 5.552000

Getting started

Cheatsheets

Community

data.table is widely used by the R community. It is being directly used by hundreds of CRAN and Bioconductor packages, and indirectly by thousands. It is one of the top most starred R packages on GitHub, and was highly rated by the Depsy project. If you need help, the data.table community is active on StackOverflow.

Stay up-to-date

Contributing

Guidelines for filing issues / pull requests: Contribution Guidelines.