spNetwork0.4.4.7 package

Spatial Analysis on Network

adaptive_bw_1d

Adaptive bw in one dimension

adaptive_bw_tnkde_cpp

The exposed function to calculate adaptive bandwidth with space-time i...

adaptive_bw_tnkde_cpp2

The exposed function to calculate adaptive bandwidth with space-time i...

adaptive_bw_tnkde.mc

Adaptive bandwidth for TNDE (multicore)

adaptive_bw_tnkde

Adaptive bandwidth for TNDE

adaptive_bw.mc

Adaptive bandwidth (multicore)

adaptive_bw

Adaptive bandwidth

add_center_lines

Add center vertex to lines

add_vertices_lines

Add vertices to a feature collection of linestrings

aggregate_points

Events aggregation

build_graph_cppr

Network generation with cppRouting

build_graph_directed

Directed network generation

build_graph

Network generation with igraph

build_grid

Spatial grid

bw_checks

Check function for parameters in bandwidth selection methods

bw_cv_likelihood_calc_tkde

Bandwidth selection for Temporal Kernel density estimate by likelihood...

bw_cv_likelihood_calc.mc

Bandwidth selection by likelihood cross validation (multicore)

bw_cv_likelihood_calc

Bandwidth selection by likelihood cross validation

bw_cvl_calc.mc

Bandwidth selection by Cronie and Van Lieshout's Criterion (multicore ...

bw_cvl_calc

Bandwidth selection by Cronie and Van Lieshout's Criterion

bw_tnkde_corr_factor_arr

Time and Network bandwidth correction calculation for arrays

bw_tnkde_corr_factor

Time and Network bandwidth correction calculation

bw_tnkde_cv_likelihood_calc.mc

Bandwidth selection by likelihood cross validation for temporal NKDE (...

bw_tnkde_cv_likelihood_calc

Bandwidth selection by likelihood cross validation for temporal NKDE

calc_gamma

Gamma parameter for Abramson’s adaptive bandwidth

calc_isochrones

Isochrones calculation

calcEuclideanDistance3

euclidean distance between rows of a matrix and a vector (arma mode)

check_geometries

Geometry sanity check

clean_events

Clean events geometries

closest_points

Find closest points

continuousfunction

The main function to calculate continuous NKDE (with ARMADILO and inte...

continuousfunction2

The main function to calculate continuous NKDE (with ARMADILO and spar...

continuousWorker_sparse

The worker function to calculate continuous NKDE (with ARMADILLO and s...

continuousWorker

The worker function to calculate continuous NKDE (with ARMADILLO and i...

correction_factor_time

Time extent correction for NKDE

correction_factor

Border correction for NKDE

corrfactor_continuous_sparse

A function to calculate the necessary information to apply the Diggle ...

corrfactor_continuous

A function to calculate the necessary information to apply the Diggle ...

corrfactor_discontinuous_sparse

A function to calculate the necessary information to apply the Diggle ...

corrfactor_discontinuous

A function to calculate the necessary informations to apply the Diggle...

cosine_kernel_cpp

c++ cosine kernel

cosine_kernel

Cosine kernel

cosine_kernelos

c++ cosine kernel for one distance

cross_gfunc_cpp

c++ cross g function

cross_kfunc_cpp

c++ cross k function

cross_kfunctions.mc

Network cross k and g functions (maturing, multicore)

cross_kfunctions

Network cross k and g functions (maturing)

cut_lines_at_distance

Cut lines at a specified distance

direct_lines

Make a network directed

discontinuousfunction

The main function to calculate discontinuous NKDE (ARMA and sparse mat...

discontinuousWorker_int

The worker function to calculate discontinuous NKDE (with ARMADILLO an...

discontinuousWorker_sparse

The worker function to calculate discontinuous NKDE (with ARMADILLO an...

dist_mat_dupl

Distance matrix with dupicated

epanechnikov_kernel_cpp

c++ epanechnikov kernel

epanechnikov_kernel

Epanechnikov kernel

epanechnikov_kernelos

c++ epanechnikov kernel for one distance

esc_kernel_loo_nkde

The worker function to calculate continuous TNKDE likelihood cv

esc_kernel_loo_tnkde_adpt

The worker function to calculate continuous TNKDE likelihood cv (adapt...

esc_kernel_loo_tnkde

The worker function to calculate continuous TNKDE likelihood cv

esd_kernel_loo_nkde

The worker function to calculate discontinuous TNKDE likelihood cv

esd_kernel_loo_tnkde_adpt

The worker function to calculate discontinuous TNKDE likelihood cv (ad...

esd_kernel_loo_tnkde

The worker function to calculate discontinuous TNKDE likelihood cv

ess_kernel_loo_nkde

The worker function to calculate simple NKDE likelihood cv

ess_kernel_loo_tnkde_adpt

The worker function to calculate simple TNKDE likelihood cv (adaptive ...

ess_kernel_loo_tnkde

The worker function to calculate simple TNKDE likelihood cv

ess_kernel

Worker for simple NKDE algorithm

g_nt_func_cpp

c++ g space-time function

gaussian_kernel_cpp

c++ gaussian kernel

gaussian_kernel_scaled_cpp

c++ scale gaussian kernel

gaussian_kernel_scaled

Scaled gaussian kernel

gaussian_kernel_scaledos

c++ scaled gaussian kernel for one distance

gaussian_kernel

Gaussian kernel

gaussian_kernelos

c++ gaussian kernel for one distance

gfunc_counting

c++ g function counting worker

gfunc_cpp

c++ g function

gfunc_cpp2

c++ g function

gm_mean

Geometric mean

graph_checking

Topological error

heal_edges

Heal edges

is_projected

Projection test

k_nt_func_cpp

c++ k space-time function

k_nt_functions.mc

Network k and g functions for spatio-temporal data (multicore, experim...

k_nt_functions

Network k and g functions for spatio-temporal data (experimental, NOT ...

kfunc_counting

c++ k function counting worker

kfunc_cpp

c++ k function

kfunc_cpp2

c++ k function 2

kfunctions.mc

Network k and g functions (multicore)

kfunctions

Network k and g functions (maturing)

kgfunc_counting

c++ k and g function counting worker

kgfunc_cpp2

c++ k and g function

kgfunc_time_counting

c++ k and g function counting worker

lines_center

Centre points of lines

lines_coordinates_as_list

Lines coordinates as list

lines_direction

Unify lines direction

lines_extremities

Get lines extremities

lines_points_along

Points along lines

list_coordinates_as_lines

List of coordinates as lines

lixelize_lines.mc

Cut lines into lixels (multicore)

lixelize_lines

Cut lines into lixels

nearest_lines

Nearest line for points

nearestPointOnLine

Nearest point on Line

nearestPointOnSegment

Nearest point on segment

network_knn_worker

worker function for K-nearest points on network

network_knn.mc

K-nearest points on network (multicore version)

network_knn

K-nearest points on network

network_listw_worker

network_listw worker

network_listw.mc

Network distance listw (multicore)

network_listw

Network distance listw

nkde_get_loo_values

The exposed function to calculate NKDE likelihood cv

nkde_worker_bw_sel

Bandwidth selection by likelihood cross validation worker function

nkde_worker

NKDE worker

nkde.mc

Network Kernel density estimate (multicore)

nkde

Network Kernel density estimate

pair_dists

pairwise distance between two vectors

plot_graph

Plot graph

prep_kfuncs_results

Preparing results for K functions

prepare_data

Prior data preparation

prepare_elements_netlistw

Data preparation for network_listw

quartic_kernel_cpp

c++ quartic kernel

quartic_kernel

Quartic kernel

quartic_kernelos

c++ quartic kernel for one distance

remove_loop_lines

Remove loops

remove_mirror_edges

Remove mirror edges

rev_matrix

Rervese the elements in a matrix

reverse_lines

Reverse lines

sanity_check_knn

Sanity check for the knn functions

select_dist_function

Select the distance to weight function

select_kernel

Select kernel function

simple_lines

LineString to simple Line

simple_nkde

Simple NKDE algorithm

simple_tnkde

Simple TNKDE algorithm

simplify_network

Simplify a network

snapPointsToLines2

Snap points to lines

sp_char_index

Coordinates to unique character vector

split_border

Split boundary of polygon

split_by_grid_abw.mc

Split data with a grid for the adaptive bw function (multicore)

split_by_grid_abw

Split data with a grid for the adaptive bw function

split_by_grid.mc

Split data with a grid

split_by_grid

Split data with a grid

split_graph_components

Split graph components

split_lines_at_vertex

Split lines at vertices in a feature collection of linestrings

spNetwork-package

spNetwork: Spatial Analysis on Network

st_bbox_by_feature

Obtain all the bounding boxes of a feature collection

st_bbox_geom

sf geometry bbox

surrounding_points

Points along polygon boundary

tkde

Temporal Kernel density estimate

tnkde_get_loo_values

The exposed function to calculate TNKDE likelihood cv

tnkde_get_loo_values2

The exposed function to calculate TNKDE likelihood cv

tnkde_worker_bw_sel

Worker function fo Bandwidth selection by likelihood cross validation ...

tnkde_worker

TNKDE worker

tnkde.mc

Temporal Network Kernel density estimate (multicore)

tnkde

Temporal Network Kernel density estimate

tnkdecontinuousfunction

The main function to calculate continuous TNKDE (with ARMADILO and spa...

tnkdediscontinuousfunction

The main function to calculate discontinuous NKDE (ARMA and Integer ma...

tnkdediscontinuousfunctionsparse

The main function to calculate discontinuous NKDE (ARMA and sparse mat...

triangle_kernel_cpp

c++ triangle kernel

triangle_kernel

triangle kernel

triangle_kernelos

c++ triangle kernel for one distance

tricube_kernel_cpp

c++ tricube kernel

tricube_kernel

Tricube kernel

tricube_kernelos

c++ tricube kernel for one distance

trim_lines_at

Helper for isochrones lines cutting

triweight_kernel_cpp

c++ triweight kernel

triweight_kernel

Triweight kernel

triweight_kernelos

c++ triweight kernel for one distance

uniform_kernel_cpp

c++ uniform kernel

uniform_kernel

Uniform kernel

uniform_kernelos

c++ uniform kernel for one distance

worker_adaptive_bw_tnkde

Worker function for adaptive bandwidth for TNDE

Perform spatial analysis on network. Implement several methods for spatial analysis on network: Network Kernel Density estimation, building of spatial matrices based on network distance ('listw' objects from 'spdep' package), K functions estimation for point pattern analysis on network, k nearest neighbours on network, reachable area calculation, and graph generation References: Okabe et al (2019) <doi:10.1080/13658810802475491>; Okabe et al (2012, ISBN:978-0470770818);Baddeley et al (2015, ISBN:9781482210200).

  • Maintainer: Jeremy Gelb
  • License: GPL-2
  • Last published: 2025-10-05