split_by_grid.mc: Split data with a grid

split_by_grid.mcR Documentation

Split data with a grid

Description

Function to split the dataset according to a grid.

Function to split the dataset according to a grid.

Usage

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

split_by_grid.mc(
  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

A list with the split dataset

Examples

#This is an internal function, no example provided
#This is an internal function, no example provided

JeremyGelb/spNetwork documentation built on Jan. 18, 2025, 3:44 p.m.