prepare_data: Prior data preparation

prepare_dataR Documentation

Prior data preparation

Description

A simple function to prepare data before the NKDE calculation.

Usage

prepare_data(samples, lines, events, w, digits, tol, agg)

Arguments

samples

A feature collection of points representing the samples points

lines

A feature collection of Linestrings representing the network

events

A feature collection of points representing the events points

w

A numeric vector representing the weight of the events

digits

The number of digits to keep

tol

A float indicating the spatial tolerance when snapping events on lines

agg

A double indicating if the points must be aggregated within a distance. if NULL, then the points are aggregated by rounding the coordinates.

Value

the data prepared for the rest of the operations

Examples

#This is an internal function, no example provided

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