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

JeremyGelb/spNetwork documentation built on May 24, 2024, 7:23 p.m.