nsd: Net squared displacement (nsd)

View source: R/nsd.R

nsdR Documentation

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 class 'track_xy'
nsd(x, ...)

add_nsd(x, ...)

## S3 method for class 'track_xy'
add_nsd(x, ...)

## S3 method for class 'steps_xy'
add_nsd(x, ...)

Arguments

x

A track_xyt.

...

Further arguments, none implemented.

Value

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


amt documentation built on March 31, 2023, 5:29 p.m.