powered by
Arrange 1d structure into a grid
wrap_dims(n, nrow = NULL, ncol = NULL)
length of structure
desired dimensions for the grid
the grid dimension as a vector with nrow and then ncol