m_surr_maxr: A funcion to avoid overlaps of order greater than r in...

Description Usage Arguments Details Value Examples

View source: R/m_surr_maxr.R

Description

This function prunes the m-surroundings .

Usage

1
m_surr_maxr(x = x, r = r, control = NULL)

Arguments

x

matrix of m-surroundings

r

maximum overlap between any two m-surroundings

control

Argumento opcional. Por definir VIP: ¿SE PUEDE PONER UNA DISTANCIA MÁXIMA PARA ELIMINAR SURROUDINGS QUE SUPEREN ESE UMBRAL?.

Details

Aquí Antonio escribe una linda historia

Value

matrix of m-surroundings excluding cases with more than r overlaps

Examples

1
2
3
4
5
6
7
library(sf)
fname <- system.file("shape/nc.shp", package="sf")
nc <- st_read(fname)
lmh3 <- m_surr_cbl(nc, m = 3)
mh3s <- m_surr_maxr(lmh3$mh, r = 1)
head(lmh3$mh); head(mh3s)
dim(lmh3$mh); dim(mh3s)

rominsal/spqdata documentation built on Jan. 24, 2021, 11:11 a.m.