split_by_grid.mc {spNetwork}R 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

[Package spNetwork version 0.4.4.6 Index]