| a5_cell_child | R Documentation |
Returns one descendant of each cell at a finer resolution without
enumerating the others: the i-th element of what
a5_cell_to_children() would return. Useful for random draws from large
cells, where building the full child list to pick one element is wasteful.
a5_cell_child(cell, child_resolution, i)
cell |
An a5_cell vector. |
child_resolution |
Integer scalar target resolution, at or finer than every cell's own resolution. |
i |
Integer vector of 1-based child positions, recycled against
|
An a5_cell vector the same length as cell. NA where cell
or i is NA.
a5_cell_to_children(), a5_get_num_children()
cell <- a5_lonlat_to_cell(-3.19, 55.95, resolution = 5)
a5_cell_child(cell, child_resolution = 7, i = 1:16)
identical(a5_cell_child(cell, 7, 1:16), a5_cell_to_children(cell, 7))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.