Package: spatsoc 0.2.13

Alec L. Robitaille

spatsoc: Group Animal Relocation Data by Spatial and Temporal Relationship and Measure Intragroup Social Dynamics

Detects spatial and temporal groups in GPS relocations (Robitaille et al. (2019) <doi:10.1111/2041-210X.13215>). It can be used to convert GPS relocations to gambit-of-the-group format to build proximity-based social networks, and perform data-stream randomization methods suitable for GPS data. Also provides measures of intragroup social dynamics including distance and direction to leaders, centroids and nearest neighbours.

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

spatsoc_0.2.13.tar.gz
spatsoc_0.2.13.zip(r-4.7)spatsoc_0.2.13.zip(r-4.6)spatsoc_0.2.13.zip(r-4.5)
spatsoc_0.2.13.tgz(r-4.6-any)spatsoc_0.2.13.tgz(r-4.5-any)
spatsoc_0.2.13.tar.gz(r-4.7-any)spatsoc_0.2.13.tar.gz(r-4.6-any)
spatsoc_0.2.13.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
spatsoc/json (API)

# Install 'spatsoc' in R:
install.packages('spatsoc', repos = c('https://ropensci.r-universe.dev', 'https://cloud.r-project.org'))

Reviews:rOpenSci Software Review #237

Bug tracker:https://github.com/ropensci/spatsoc/issues

Pkgdown/docs site:https://docs.ropensci.org

On CRAN:

Conda:

animalcentroiddirectiondistancegpsleader-followernetworksocialspatial

10.39 score 25 stars 3 packages 152 scripts 566 downloads 4 mentions 29 exports 34 dependencies

Last updated from:478969b350 (on main). Checks:10 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK309
pkgdown docsOK206
source / vignettesOK212
linux-release-x86_64OK248
macos-release-arm64OK202
macos-oldrel-arm64OK200
windows-develOK219
windows-releaseOK212
windows-oldrelOK240
wasm-releaseOK180

Exports:build_linesbuild_polyscentroid_dyadcentroid_fusioncentroid_groupdirection_groupdirection_polarizationdirection_stepdirection_to_centroiddirection_to_leaderdistance_to_centroiddistance_to_leaderdyad_idedge_alignmentedge_delayedge_directionedge_distedge_nnedge_zonesfusion_idget_gbiget_geometrygroup_linesgroup_polysgroup_ptsgroup_timesleader_direction_groupleader_edge_delayrandomizations

Dependencies:ade4adehabitatHRadehabitatLTadehabitatMAbootCircStatsclassclassIntclicpp11data.tableDBIe1071glueigraphKernSmoothlatticelifecyclelwgeommagrittrMASSMatrixpixmappkgconfigproxyRcppRcppArmadillorlangs2sfspunitsvctrswk

Detecting interspecific interactions
Interspecific interactions

Last update: 2026-04-25
Started: 2026-04-25

Geometry interface and spatial measures
Introduction | Setup | get_geometry | Usage | Spatial measures | Distance | Direction | Centroid | Converting from other packages | Converting from | Converting from | Converting to other packages | Converting to | Converting to | Converting to

Last update: 2026-04-24
Started: 2025-12-19

Frequently asked questions about spatsoc
Usage | Spatial and temporal grouping | Installation | Package dependencies | Functions | group_times | DT | datetime format | threshold recommendations | Limitations of threshold | Columns returned by group_times | Warnings and messages | group_pts | DT | threshold | group_lines | crs | sortBy | group_polys | DT and area | hrType and hrParams | edge_dist | edge_nn | randomizations | Package design | Don't I need to reassign to save the output? | Why does a function print the result, but columns aren't added to my DT? | Summary information | Number of individuals | Temporal range | Spatial extent | spatsoc outputs

Last update: 2026-03-06
Started: 2018-07-28

Introduction to spatsoc
Data preparation | Temporal grouping | Spatial grouping | Edge-list generation

Last update: 2025-12-19
Started: 2025-07-29

Using distance based edge-list generating functions, dyad_id and fusion_id
Generate edge-lists | 1. Load packages and prepare data | 2. a) edge_dist | 2. b) edge_nn | Dyads | 3. dyad_id | Fusion events | 4. fusion_id

Last update: 2025-12-19
Started: 2020-03-25

Using spatsoc in social network analysis
Generate gambit of the group data | 1. Load packages and prepare data | 2. a) group_pts | 2. b) group_lines | 2. c) group_polys | Build observed network | 3. get_gbi | 4. asnipe::get_network | Data stream randomization | 5. a) type = 'step' | 5. b) type = 'daily' | 5. c) type = 'trajectory' | Build random network | 6. a) type = 'step' | 6. b) type = 'daily' | 6. c) type = 'trajectory' | Network metrics | 7. Calculate observed network metrics | 8. Calculate random network metrics | 9. Compare observed and random metrics

Last update: 2025-12-19
Started: 2018-09-13