Learn R Programming

spNetwork (version 0.2.1)

select_dist_function: 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

Run this code
# NOT RUN {
#This is an internal function, no example provided
# }

Run the code above in your browser using DataLab