recreate_listw: Create a listw object from a neighbors and weight list

View source: R/utils.R

recreate_listwR Documentation

Create a listw object from a neighbors and weight list

Description

Given a neighbor and weight list, create a listw object.

Usage

recreate_listw(nb, wt)

Arguments

nb

a neighbor list object for example as created by st_contiguity().

wt

a weights list as created by st_weights().

Value

a listw object

Examples

recreate_listw(guerry_nb$nb, guerry_nb$wt)

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