powered by
Fill NULL indices with a range from 1:dim
fill_missing_indices(index, dim)
a numeric value or NULL
size of dimension