Enhancing a data.frame with a data.table
When you process a dataset that is a Gigabyte or larger in size, you may find that a
data.frame is rather inefficient. To address this issue, you can use the enhanced extension of
data.table. In this recipe, we will show how to create a
data.table in R.
purchase_order.tab datasets from the following GitHub links, respectively:
How to do it…
Perform the following steps to create a
- First, install and load the
data.tablepackage using the following commands:
> install.packages("data.table") > library(data.table) ...