permutations enumerates the possible permutations. The function is forked and minified from gtools::permutations
permutations(n, r, v = 1:n)
Returns a matrix where each row contains a vector of length r.
Size of the source vector
Size of the target vectors
Source vector. Defaults to 1:n
Original versions by Bill Venables. Extended to handle repeats.allowed by Gregory R. Warnes
Venables, Bill. "Programmers Note", R-News, Vol 1/1, Jan. 2001. https://cran.r-project.org/doc/Rnews/
Other Helper Functions:
get_grids()
,
grid_area()
,
hexa_area()
,
isSpatial()
,
readinteger()
,
readintegerSel()
,
splitAt()
,
windata_format()