split_by_grid: Split data with a grid

split_by_gridR Documentation

Split data with a grid

Description

Function to split the dataset according to a grid.

Usage

split_by_grid(grid, samples, events, lines, bw, tol, digits, split_all = TRUE)

Arguments

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)

Value

A list with the split dataset

Examples

#This is an internal function, no example provided

JeremyGelb/spNetwork documentation built on May 24, 2024, 7:23 p.m.