split_by_grid | R Documentation |
Function to split the dataset according to a grid.
split_by_grid(grid, samples, events, lines, bw, tol, digits, split_all = TRUE)
grid |
A spatial grid to split the data within |
samples |
A feature collection of points representing the samples points |
events |
A feature collection of points representing the events points |
lines |
A feature collection of linestrings representing the network |
bw |
The kernel bandwidth (used to avoid edge effect) |
tol |
A float indicating the spatial tolerance when snapping events on lines |
digits |
The number of digits to keep |
split_all |
A boolean indicating if we must split the lines at each vertex (TRUE) or only at event vertices (FALSE) |
A list with the split dataset
#This is an internal function, no example provided
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.