Start Learning for Free

Join over 1,000,000 other Data Science learners and start one of our interactive tutorials today!

Topic r small

The data.table R Package Cheat Sheet

November 24th, 2014 in R Programming

The data.table R package provides an enhanced version of data.frame that allows you to do blazing fast data manipulations. The data.table R package is being used in different fields such as finance and genomics and is especially useful for those of you that are working with large data sets (for example, 1GB to 100GB in RAM).

Although its typical syntax structure is not hard to master, it is unlike other things you might have seen in R. Hence the reason to create this cheat sheet. DataCamp’s data.table cheat sheet is a quick reference for doing data manipulations in R with the data.table R package and syntax

The cheat sheet will guide you from doing simple data manipulations using data.table’s basic i, j, by syntax, to chaining expressions, to using the famous set()-family.

(To practice using the data.table package, try the free first chapter of this course, which includes exercises in subsetting a data.table and manipulating data with data.table's by, .N, and j syntax. )

data.table R package tutorial cheat sheet


Here is a small mistake DT[,.(V4.Sum=sum(V4)), by=.(V1.01=sign(V1-1)] missing the ")".
06/23/17 1:06 PM |
Can I add to the request that you reformat so that it is printable in a readable fashion. At the moment it is all squeezed vertically onto one page. One pane per page would be useful, we can always choose to have 2 on a page when printing.
03/25/17 9:42 AM |
Agree. Please format to allow printing.
02/09/17 5:50 PM |
The information on this cheat sheet looks pretty useful. Too bad you can't actually print it to use it.
01/20/17 7:16 PM |
Is it possible to format this cheat sheet in A4 so that we can print it?
10/27/16 4:08 PM |