Skip to contents

This function returns the number of locations of a track from a Move or MoveStack object.

Usage

# S4 method for SpatialPointsDataFrame
n.locs(obj)
  # S4 method for .MoveTrackStack
n.locs(obj)

Arguments

obj

a move, moveStack or moveBurst object

Value

number of locations.

If a MoveStack is provided, the number of locations per individual is returned.

Author

Marco Smolla

Examples

data(leroy)
data(fishers)
n.locs(leroy) # of Move object
#> [1] 919
n.locs(fishers) # of MoveStack object
#>   Leroy Ricky.T 
#>     919    1000