Using list() to extract a data.table inside of a function
- by Nathan VanHoudnos
I must admit that the data.table J syntax confuses me.
I am attempting to use list() to extract a subset of a data.table as a data.table object as described in Section 1.4 of the data.table FAQ, but I can't get this behavior to work inside of a function.
An example:
require(data.table)
## Setup some test data
set.seed(1)
test.data <-…