I have two data frame in data.table forms. One has grouped data for which I would like extract index of values from the second data.table frame. Below are sample data