Learn R Programming

sfdep (version 0.2.5)

recreate_listw: 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)

Value

a listw object

Arguments

nb

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

wt

a weights list as created by st_weights().

Examples

Run this code
recreate_listw(guerry_nb$nb, guerry_nb$wt)

Run the code above in your browser using DataLab