
Last chance! 50% off unlimited learning
Sale ends in
The resulting grid will be of size a*a
or a*(a+1)
where a
is an integer.
It will therefore always be a square or or have one row/column more than columns/rows.
get_square_grid(N, moreRows = TRUE)
number of objects.
whether there should be more rows than columns if the resulting grid is not square. Defaults to more rows (TRUE
).
A named list with elements rows and columns specifying the size of the optimal grid.
# NOT RUN {
get_square_grid(5)
# }
Run the code above in your browser using DataLab