New experimental functions:
edge_direction function for calculating the direction between individuals (PR 80)edge_zones function for calculating behavioural zones (PR 112)Fixes:
centroid_dyad and centroid_fusion return NA for centroids
when dyadID / fusionID are NA (PR 114)Maintenance:
\code{}) with Markdown
throughout package, and using consistent language across man pages
(#94,
PR 113)New experimental function:
edge_alignment function for calculating directional alignment (PR 111)Fixes:
Breaking changes:
edge_delay , since order of individuals ID1/ID2 should not influence results
(PR 106)New experimental function:
leader_edge_delay function for calculating leadership with the directional
correlation delay (PR 96)Fixes:
New experimental function:
edge_delay function for calculating the directional correlation delay
(PR 70)Fixes:
direction_step (PR 92)New experimental functions:
leader_direction_group function for calculating leadership defined as
position within a spatiotemporal group along the mean direction of movement
(PR 66)direction_to_leader function for calculating the direction to the
leader of each spatiotemporal group identified by leader_direction_group
(PR 68)distance_to_leader function for calculating the distance to the
leader of each spatiotemporal group identified by leader_direction_group
(PR 68)Fixes:
New experimental functions:
direction_polarization function for calculating polarization of individual
directions within spatiotemporal groups
(PR 76)direction_group function for calculating mean group direction
(PR 91)direction_to_centroid function for calculating direction in radians from
each individual's position in a spatiotemporal group and the group's centroid,
distance_to_centroid function for calculation the distance (and rank distance)
from each individual's position in a spatiotemporal group and the group's
centroid (PR 74)direction_step function for calculating direction in radians between each
location (PR 90)New experimental functions:
centroid_fusion function for calculation fusion centroids
(PR 89)centroid_group function for calculating group centroids
(PR 72))New experimental function:
fusion_id function for flexibly identifying fission-fusion events
(PR 78)fusion_id with tests for expected number of output fusionIDs
(PR 83)sf, units instead of rgeos and spbuild_lines now returns an sf LINESTRING objectbuild_polys now returns an sf POLYGON/MULTIPOLYGON objectgroup_lines now accepts an input sf LINESTRING object (argument "sfLines")
and internally uses sf::st_intersects, sf::st_buffer, etc instead of rgeos functionsgroup_polys now accepts an input sf POLYGON/MULTIPOLYGON object (argument "sfPolys")
and internally uses sf::st_intersects, sf::st_area, etc instead of rgeos functions.
group_polys now returns area and proportion of overlap when area = TRUE with
respective units using the units packagespatsoc + targets workflow examplegroup_polys from alphanumeric to
spaces in input DT's id columngroup_pts, edge_nn and edge_dist
(PR 46)edge_dist to handle threshold = NULL. If NULL, edge_dist will return all neighbours observed (eg. useful if one wanted to calculated mean nearest neighbour distance at each timegroup).dyad_id function for generating dyad IDs with edge functions
(PR 27)edge_dist, edge_nn and dyad_id functions here
(PR 14)data.table error in edge_dist and edge_nn
(PR 25)group_pts, edge_dist
and edge_nn (PR 24)SIMPLIFY=FALSE in SNA vignette.edge_nn
(PR 11)edge_dist
(PR 11)pkgdown URL
(PR 1)build_polys or
group_polys(!3)get_gbi to generate group by individual matrices for better
integrating spatsoc in social network analysis workflows
(!2)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).build_lines ordering bug to ensure rows are ordered by date time when building linesgroup_timesgroup_pts, group_lines, group_polysrandomizationsbuild_lines, build_polys