Group Animal Relocation Data by Spatial and Temporal Relationship

Detects spatial and temporal groups in GPS relocations (Robitaille et al. (2020) ). It can be used to convert GPS relocations to gambit-of-the-group format to build proximity-based social networks In addition, the randomizations function provides data-stream randomization methods suitable for GPS data.


v 0.1.8

  • update FAQ and Introduction to spatsoc vignettes adding entries for edge list generating functions.
  • added edge list generating function edge_nn (PR 11)
  • added edge list generating function edge_dist (PR 11)

v 0.1.7 (2019-03-26)

  • fix inconsistent blocks across years (PR 10)
  • update FAQ: remove old randomizations notes, clarify group_times block

v 0.1.6 (2019-01-10)

  • fix bug 'group_times misses nearest hour with mins threshold' (#5 and PR 6)

v 0.1.5 (2018-12-04)

  • update issue labels and contributing
  • change over issue board location from GitLab to rOpenSci repository on GitHub
  • added preprint CITATION
  • added "https://" to pkgdown URL (PR 1)

v 0.1.4 (2018-10-26)

v 0.1.3

  • added get_gbi to generate group by individual matrices for better integrating spatsoc in social network analysis workflows (!2)

v 0.1.2

  • major change to randomizations: when iterations = 1, randomizations no longer returns the DT with appended columns. Regardless of the value of iterations, randomizations always returns observed rows followed by randomized rows in a long data.table (!1).

v 0.1.1 (2018-09-17)

  • improvements to package, function documentation
  • FAQ vignette added
  • fixed build_lines ordering bug to ensure rows are ordered by date time when building lines
  • added and
  • Using spatsoc in social network analysis vignette added

v 0.1.0 (2018-07-20)

Initial release

  • temporal grouping function: group_times
  • spatial grouping functions: group_pts, group_lines, group_polys
  • data-stream randomization function: randomizations
  • spatial build functions: build_lines, build_polys

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


0.1.16 by Alec L. Robitaille, 8 months ago,,

Report a bug at

Browse source code at

Authors: Alec L. Robitaille [aut, cre] , Quinn Webber [aut] , Eric Vander Wal [aut]

Documentation:   PDF Manual  

Task views: Processing and Analysis of Tracking Data

GPL-3 | file LICENSE license

Imports data.table, sp, rgeos, adehabitatHR, igraph, methods

Suggests testthat, knitr, rmarkdown, asnipe, markdown

System requirements: GEOS (>= 3.2.0)

Imported by hwig.

See at CRAN