split_by_grid.mc: Split data with a grid (multicore)

split_by_grid.mcR Documentation

Split data with a grid (multicore)

Description

Function to split the dataset according to a grid with multicore support.

Usage

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 feautre 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.