spatialWeightsPoints:

Usage Arguments Examples

View source: R/spatialWeightsPoints.R

Usage

1

Arguments

points

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function (points) 
{
    distances <- 1/st_distance(points)
    distances[distances == Inf] = 0
    return(distances)
  }

JusteRaimbault/r-spatialmorphology documentation built on May 22, 2019, 5:07 p.m.