get_batches | R Documentation |
Divides the grid into one or two lists of chunked sf objects, depending on the data-collection case (1,2,3).
get_batches(cases, grid, batch_size)
cases |
[mandatory] (integer) 1=All build, 2=All update, 3=Mixed. |
grid |
[mandatory] (sf) The sf object (grid) containing column 'add' to distinguish existing vs. new rows. |
batch_size |
[mandatory] (integer) If |
(list) A list of two elements, b1
and b2
, each a list
of sf subsets (chunks). b2
might be NULL
if not needed.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.