redist.random.subgraph: Return a random subgraph of a shape

View source: R/random_subgraph.R

redist.random.subgraphR Documentation

Return a random subgraph of a shape

Description

random.subgraph returns a random subset of the shp provided

Usage

redist.random.subgraph(shp, n, adj = NULL)

Arguments

shp

sf object or SpatialPolygonsDataFrame

n

number of edges to sample. n must be a positive integer.

adj

Optional. zero indexed adjacency list.

Details

Snowball sampling with backtracking

Value

sf dataframe with n rows


redist documentation built on June 24, 2024, 9:10 a.m.