Skip to contents

Computes the straight-line distance between points on the curve and then adds them up to get the arc length.

Usage

arclength(x, y)

Arguments

x, y

Coordinates of the curve.

Value

Arc length along the curve.

Examples

# compute arc length in each frame from the lamprey data set
lampreydata |>
  group_by(frame) |>
  mutate(arclen = arclength(mxmm, mymm))
#> Error in mutate(group_by(lampreydata, frame), arclen = arclength(mxmm,     mymm)): could not find function "mutate"