After selection of rows with .SD[.N] I can\'t convert column because of different number of elements then there are :
.SD[.N]
library(data.table) dane =