collapse icon indicating copy to clipboard operation
collapse copied to clipboard

Indexed series creation in data.table

Open SebKrantz opened this issue 3 years ago • 0 comments

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

SebKrantz avatar Aug 18 '22 11:08 SebKrantz