collapse
collapse copied to clipboard
Indexed series creation in data.table
With an indexed data.table, computing a variable and retrieving it using $ should also confer the 'indexed_series' class to the new vector:
DT_IX[, var := 1]
DT_IX$var # Needs to have 'indexed_series' class