Skip to contents

New and improved version of prune network, it handles a larger variety of inputs and is better implemented exclude and match can be used in a variety of ways, and the function can sometimes handle them at the same time But it is often better to call the function multiple times, using different arguments

Usage

PruneNetwork(network, root, exclude, match, tolerance = 100, plot = T)

Arguments

network

A sfnetwork to be pruned

root

a sf point or coordinates for the root

exclude

a logical vector or vector of values to exclude

match

a sf object with points or lines

tolerance

a tolerance for matching points to the network

plot

logical, should a plot be made

Value

A sfnetwork pruned as specified