creates a matrix and fill it using a data.table in contrast to acast, it creates all rows and cols (even if there is not data)

mcast(dd, val, row, col, dim, fill = NA)