Learn R Programming

nat (version 1.8.24)

resample: Resample an object with a new spacing

Description

Resample an object with a new spacing

resample a neuron with a new spacing

Usage

resample(x, ...)

# S3 method for neuron resample(x, stepsize, ...)

Arguments

x

An object to resample

...

Additional arguments passed to methods

stepsize

The new spacing along the tracing

Details

resample.neuron Floating point columns including X,Y,Z,W will be interpolated using linear interpolation, while integer or factor columns will be interpolated using constant interpolation. See approx for details.

See Also

approx, seglengths

Other neuron: neuron(), ngraph(), plot.neuron(), potential_synapses(), prune(), rootpoints(), spine(), subset.neuron()