
Last chance! 50% off unlimited learning
Sale ends in
Function to split the dataset according to a grid.
split_by_grid(grid, samples, events, lines, bw, tol, digits, split_all = TRUE)
A spatial grid to split the data within
A spatialPointsDataFrame of the samples points
A spatialPointsDataFrame of the events points
A SpatialLinesDataFrame representing the network
The kernel bandwidth (used to avoid edge effect)
A float indicating the spatial tolerance when snapping events on lines
The number of digits to keep
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
# NOT RUN {
#This is an internal function, no example provided
# }
Run the code above in your browser using DataLab