build.pairwise.dst.matrix: build.pairwise.dst.matrix

Description Usage Arguments Value

View source: R/SIF-fcns.R

Description

Builds a pairwise distance matrix from an sf object. Option to get bisq distance weights. Mostly just wraps sf::st_distance. See http://mjh4.blogspot.com/2012/09/ergm-edgecov-and-dyadcov-specifications.html or https://cran.r-project.org/web/packages/ergm/vignettes/ergm-term-crossRef.html for edgecov/dyadcov documentation.

Usage

1
build.pairwise.dst.matrix(sfx, decay = F, h0 = 32.2, ...)

Arguments

sfx

sf object to generate distances from

decay

Whether to get decayed distances with bisq weights

h0

if decay is TRUE, the distance in KM at which spatial weights are 0.

Value

distance or spatial weights matrix. If distance, matrix is of numerics representing KMs


kmcd39/divflow documentation built on Dec. 21, 2021, 7:38 a.m.