I discovered the impressive
data.table package more than a year ago. In order to learn how to use it, I try to find a solution to some questions I read at mailing lists or at stackoverflow. My last experiment has been inspired by the bigvis package and its associated paper. This package is a proposal for exploratory data analysis of large datasets following the workflow of binning, summarizing and display.
Please note that I am neither trying to mimic the behavior of
bigvis nor comparing both packages. It is only an excuse to learn more about
data.table and this post shows the code I have used.
The first part of my experiment deals with one-dimensional data:
Some key points I have learned about
:=to add, remove or modify by reference (avoids memory overhead since it does not make additional copies)
.SDsymbols for grouping