adding comparison to data.table