spatsoc
Group Animal Relocation Data by Spatial and Temporal Relationship and Measure Intragroup Social Dynamics
Description
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.
Downloads
558
Last 30 days
6176th
1.4K
Last 90 days
7.9K
Last year
Trend: +6.7% (30d vs prior 30d)
14
Last 30 days
36
Last 90 days
112
Last year
Trend: -30% (30d vs prior 30d)
3
Last 7 days
12
Last 30 days
1
All-time
autoCRAN-only: this name is served only by autoCRAN, so the count is exact.
CRAN Check Status
Show all 13 flavors
| Flavor | Status |
|---|---|
| r-devel-linux-x86_64-debian-clang | OK |
| r-devel-linux-x86_64-debian-gcc | OK |
| r-devel-linux-x86_64-fedora-clang | OK |
| r-devel-linux-x86_64-fedora-gcc | OK |
| r-devel-windows-x86_64 | OK |
| r-oldrel-macos-arm64 | OK |
| r-oldrel-macos-x86_64 | OK |
| r-oldrel-windows-x86_64 | OK |
| r-patched-linux-x86_64 | OK |
| r-release-linux-x86_64 | OK |
| r-release-macos-arm64 | OK |
| r-release-macos-x86_64 | OK |
| r-release-windows-x86_64 | OK |
Check History
OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 30, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 2 ERROR · 0 FAILURE Apr 24, 2026
examples
Running examples in 'spatsoc-Ex.R' failed
The error most likely occurred in:
> ### Name: group_lines
> ### Title: Group Lines
> ### Aliases: group_lines
>
> ### ** Examples
>
> # Load data.table
> library(data.table)
Attaching package: 'data.tabl
...[truncated]...
T[timegroup < 25]
>
> # Spatial grouping
> group_lines(DT, threshold = 50, projection = utm,
+ id = 'ID', coords = c('X', 'Y'),
+ timegroup = 'timegroup', sortBy = 'datetime')
group column will be overwritten by this function
examples
Running examples in 'spatsoc-Ex.R' failed
The error most likely occurred in:
> ### Name: group_lines
> ### Title: Group Lines
> ### Aliases: group_lines
>
> ### ** Examples
>
> # Load data.table
> library(data.table)
> ## Don't show:
> data.table
...[truncated]...
T[timegroup < 25]
>
> # Spatial grouping
> group_lines(DT, threshold = 50, projection = utm,
+ id = 'ID', coords = c('X', 'Y'),
+ timegroup = 'timegroup', sortBy = 'datetime')
group column will be overwritten by this function
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 13, 2026
ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Mar 30, 2026
tests
Running 'testthat.R' [29s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> library(testthat)
> library(spatsoc)
Note: spatsoc has been updated to follow the R-spatial evolution.
Package dependencies and some functions have
...[truncated]...
ure ('test-time.R:287:3'): group_times nearest hour with minutes threshold ──
Expected `...[]` to equal 3.
Differences:
1/1 mismatches
[1] 4 - 3 == 1
[ FAIL 2 | WARN 12 | SKIP 0 | PASS 289 ]
Error:
! Test failures.
Execution halted