Learn R Programming

amt (version 0.2.2.0)

nsd: Net squared displacement (nsd)

Description

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_).

Usage

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, ...)

Value

Numeric vector (for nsd()) and a tillbe with the original data with a new column for add_nsd().

Arguments

x

[track_xy, track_xyt]
A track created with make_track.

...

Further arguments, none implemented.