Skip to contents

The function border_lengths creates a dataframe for each area of sf containing information about the shared borders with other areas. Within this package the primary use is within border_precision.

Usage

border_lengths(sf)

Arguments

sf

A simple features object with some geometry.

Value

A list of nrow(sf) data frames which each have columns:

  • origin The origin node.

  • perimeter The perimeter of the origin node.

  • touching The index of a node having shared border with the origin node.

  • length The length of border between origin and touching.

  • weight The proportion of origin's border which is with touching.

Examples

border_lengths(mw)
#> Error in sf::st_geometry(sf): object 'mw' not found