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)

sfdep documentation built on Jan. 11, 2023, 9:08 a.m.