select_dist_function: Select the distance to weight function

View source: R/neighbouring_sf.R

select_dist_functionR Documentation

Select the distance to weight function

Description

Select a function to convert distance to weights if a function is provided, this function will be vectorized.

Usage

select_dist_function(dist_func = "inverse")

Arguments

dist_func

Could be a name in c('inverse', 'identity', 'squared inverse') or a function with only one parameter x

Value

A vectorized function used to convert distance into spatial weights

Examples

#This is an internal function, no example provided

spNetwork documentation built on June 22, 2024, 9:40 a.m.