data.table

Rafael A. Irizarry · 2024

The chapter introduces the data.table package in R, which offers efficiency and memory management advantages over the tidyverse packages for handling large datasets. It covers basic data.table operations such as subsetting columns and rows, adding or transforming variables, and the nuances of reference versus copy in memory usage. The chapter also discusses data summarization, sorting, and group-wise operations in data.table, providing a concise comparison with tidyverse syntax and demonstrating ‘data.table’&s;s capabilities through examples and exercises. For a detailed overview, you can read the full chapter [here] ( https://rafalab.dfci.harvard.edu/dsbook-part-1/R/data-table.html ).

Read the paper · More papers on PaperTik