The function nsd()
calculates the net squared displacement (i.e., the squared distance from the first location of a track) for a track. The function add_nsd()
add a new column to a track or steps object with the nsd (the column name is nsd_
).
nsd(x, ...)# S3 method for track_xy
nsd(x, ...)
add_nsd(x, ...)
# S3 method for track_xy
add_nsd(x, ...)
# S3 method for steps_xy
add_nsd(x, ...)
Numeric vector (for nsd()
) and a tillbe with the original data with a new column for add_nsd()
.
[track_xy, track_xyt]
A track created with make_track
.
Further arguments, none implemented.