st_complete_nb: Create Neighbors as Complete Graph

View source: R/nb-complete-graph.R

st_complete_nbR Documentation

Create Neighbors as Complete Graph

Description

Create a neighbors list where every element is related to every other element. This creates a complete graph.

Usage

st_complete_nb(n_elements, diag = FALSE)

Arguments

n_elements

the number of observations to create a neighbors list for

diag

default FALSE. If TRUE, includes diagonal element / the self.

Value

A neighbors list representing a complete graph.

Examples

st_complete_nb(5)

JosiahParry/sfdep documentation built on Sept. 7, 2024, 6:15 a.m.