n_dims: Number of Spatial Dimensions of a Track Table

View source: R/utils.R

n_dimsR Documentation

Number of Spatial Dimensions of a Track Table

Description

Track tables produced by track_df can have 2 (x,y) or 3 (x, y, z) spatial dimensions. This function returns the number of spatial dimensions of a track table.

Usage

n_dims(x)

Arguments

x

A track data table as produced by track_df.

Value

A numeric value.

Author(s)

Simon Garnier, garnier@njit.edu

Examples

data(short_tracks)

n_dims(short_tracks)


swarm-lab/trackdf documentation built on March 27, 2023, 2:13 a.m.