View source: R/random_subgraph.R
redist.random.subgraph | R Documentation |
random.subgraph
returns a random subset of the shp provided
redist.random.subgraph(shp, n, adj = NULL)
shp |
sf object or SpatialPolygonsDataFrame |
n |
number of edges to sample. n must be a positive integer. |
adj |
Optional. zero indexed adjacency list. |
Snowball sampling with backtracking
sf dataframe with n rows
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.