Please find the toy sample as following.
There should be an efficient way of expressing .SDcols and the remain colnames for .SD. In the toy
.SDcols
.SD