creates a vector and fill it using a data.table in contrast to acast, it creates all elements

vcast(dd, val, index, size, fill = NA)