R/neuron.R, R/neuronlist.R
prune_twigs.Rdprune_twigs will prune twigs less than a certain path length from a neuron
prune_twigs(x, ...)
# S3 method for neuron
prune_twigs(x, twig_length, ...)
# S3 method for neuronlist
prune_twigs(x, twig_length, OmitFailures = NA, ...)A neuron or neuronlist object
Additional arguments passed to nlapply,
prune_vertices and eventually as.ngraph.
Twigs shorter than this will be pruned
Whether to omit neurons for which FUN gives an
error. The default value (NA) will result in nlapply stopping with
an error message the moment there is an error. For other values, see
details.