prepare_data | R Documentation |
A simple function to prepare data before the NKDE calculation.
prepare_data(samples, lines, events, w, digits, tol, agg)
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. |
the data prepared for the rest of the operations
#This is an internal function, no example provided
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.