get_square_grid: Specifies a square grid which fits N objects.

Description Usage Arguments Value Examples

Description

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.

Usage

1
get_square_grid(N, moreRows = TRUE)

Arguments

N

number of objects.

moreRows

whether there should be more rows than columns if the resulting grid is not square. Defaults to more rows (TRUE).

Value

A named list with elements rows and columns specifying the size of the optimal grid.

Examples

1

hgvandenboorn/hgutils documentation built on Sept. 9, 2019, 2:50 a.m.