Skip to contents

Neighbors

st_contiguity()
Identify polygon neighbors
st_knn()
Calculate K-Nearest Neighbors
st_dist_band()
Neighbors from a distance band
st_block_nb()
Create Block Contiguity for Spatial Regimes
st_nb_delaunay() st_nb_gabriel() st_nb_relative()
Graph based neighbors
st_complete_nb()
Create Neighbors as Complete Graph
st_nb_lag()
Pure Higher Order Neighbors
st_nb_lag_cumul()
Encompassing Higher Order Neighbors
st_cardinalties()
Calculate neighbor cardinalities
cond_permute_nb()
Conditional permutation of neighbors

Weights

st_weights()
Calculate spatial weights
st_nb_dists()
Calculate neighbor distances
st_kernel_weights()
Calculate Kernel Weights
st_inverse_distance()
Calculate inverse distance weights

Local Indicators of Spatial Association (LISA)

st_lag()
Calculate spatial lag
local_c() local_c_perm()
Compute Local Geary statistic
local_colocation()
Local indicator of Colocation Quotient
local_g() local_g_perm()
Local G
local_gstar() local_gstar_perm()
Local G*
local_jc_bv()
Bivariate local join count
local_jc_uni()
Compute local univariate join count
local_moran()
Calculate the Local Moran's I Statistic
local_moran_bv()
Compute the Local Bivariate Moran's I Statistic
losh() losh_perm()
Local spatial heteroscedacity
nb_match_test()
Local Neighbor Match Test

Global Measure of Spatial Autocorrelation

global_c()
Compute Geary's C
global_c_perm()
Global C Permutation Test
global_c_test()
Global C Test
global_colocation()
Global Colocation Quotient
global_g_test()
Getis-Ord Global G
global_jc_perm() global_jc_test() tally_jc()
Global Join Counts
global_moran()
Calculate Global Moran's I
global_moran_bv()
Compute the Global Bivariate Moran's I
global_moran_perm()
Global Moran Permutation Test
global_moran_test()
Global Moran Test
pairwise_colocation()
Pairwise Colocation Quotient
spatial_gini()
Spatial Gini Index

Spacetime

spacetime() new_spacetime() validate_spacetime() is_spacetime() is.spacetime()
Construct a spacetime object
active() activate()
Activate spacetime context
is_spacetime_cube()
Test if a spacetime object is a spacetime cube
complete_spacetime_cube()
Convert spacetime object to spacetime cube
emerging_hotspot_analysis()
Emerging Hot Spot Analysis
set_col() set_wts() set_nbs()
Set columns from geometry to data
as_sf() as_spacetime()
Cast between spacetime and sf classes
spt_update()
Update spacetime attributes

Point Pattern

center_mean() center_median() euclidean_median()
Calculate Center Mean Point
std_distance()
Calculate standard distance
std_dev_ellipse()
Calculation Standard Deviational Ellipse
ellipse() st_ellipse()
Create an Ellipse

Data

guerry guerry_nb
"Essay on the Moral Statistics of France" data set.

Networks

st_as_graph()
Create an sfnetwork
st_as_edges()
Convert to an edge lines object
st_as_nodes()
Convert to a node point object
node_get_nbs() node_get_edge_list() node_get_edge_col()
Create node features from edges

Utility Functions

find_xj()
Identify xj values
include_self() remove_self()
Includes self in neighbor list
wt_as_matrix() nb_as_matrix()
Convert neighbor or weights list to matrix
critical_threshold()
Identify critical threshold
szero()
Global sum of weights
pct_nonzero()
Percent Non-zero Neighbors
nb_union() nb_intersect() nb_setdiff()
Set Operations
st_nb_apply()
Apply a function to neighbors

Internal functions

check_pkg_suggests()
Check if a vector of packages are available
check_polygon()
Checks geometry for polygons.
class_modify()
Modify object classes
classify_hotspot()
Classify Hot Spot results
global_colocation_calc()
Calculate the Global Colocation Quotient
global_colocation_perm_impl()
Global Colocation Quotient Conditional Permutation Implementation
inverse_dist_calc()
Calculate inverse distance weights
jc_bjc_calc()
Calculate BJC Bivariate Case
jc_bjc_perm_impl()
Calculate BJC BV for conditional permutations
jc_clc_perm_impl()
Calculate CLC BV for conditional permutations
jc_uni_calc()
Calculate univariate join count at row level
jc_uni_impl()
Implementation of the univariate join count on listw objects
jc_uni_perm_impl()
Conditional permutation of univariate local join count
kernels
Kernel functions
local_colocation_calc()
Calculate the local colocation quotient
local_colocation_impl()
spdep implementation of local colocation quotient
local_g_spt()
Calculate the Local Gi* for a spacetime cube
local_moran_bv_calc()
Calculate the Local Bivariate Moran Statistic
local_moran_bv_impl()
Local Bivariate Moran's I spdep implementation
local_moran_bv_perm_impl()
Local Bivariate Moran's I conditional permutation implementation
moran_bv_calc()
Global Bivariate Moran's I calculation
moran_bv_impl()
Global Bivariate Moran's I spdep implementation
moran_bv_perm_impl()
Global Bivariate Moran's I conditional permutation implementation
nmt_calc()
Identify matches between two neighbor lists
nmt_impl()
Implementation of Neighbor Match Test
nmt_perm_impl()
Find conditionally permuted neighbor matches Given a kNN attribute neighbor list and a listw object, find the number of matches given a conditional permutation.
pairwise_colocation_calc()
Pairwise CLQ calculation
pairwise_colocation_perm_impl()
Pairwise CLQ conditional permutation implementation
permute_listw()
Conditionally permutes a listw object
shuffle_nbs()
Internal function to shuffle neighbors
sin_d()
Trigonometric functions
spt_nb()
Create time lagged spatial neighbors
spt_order()
Order a spacetime cube
spt_wt()
Create time lagged spatial weights