Package: sftrack 0.5.4

Mathieu Basille

sftrack: Modern Classes for Tracking and Movement Data

Modern classes for tracking and movement data, building on 'sf' spatial infrastructure, and early theoretical work from Turchin (1998, ISBN: 9780878938476), and Calenge et al. (2009) <doi:10.1016/j.ecoinf.2008.10.002>. Tracking data are series of locations with at least 2-dimensional spatial coordinates (x,y), a time index (t), and individual identification (id) of the object being monitored; movement data are made of trajectories, i.e. the line representation of the path, composed by steps (the straight-line segments connecting successive locations). 'sftrack' is designed to handle movement of both living organisms and inanimate objects.

Authors:Matthew Boone [aut], Rocío Joo [aut], Emiel Van Loon [ctb], Mathieu Basille [aut, cre]

sftrack_0.5.4.tar.gz
sftrack_0.5.4.zip(r-4.5)sftrack_0.5.4.zip(r-4.4)sftrack_0.5.4.zip(r-4.3)
sftrack_0.5.4.tgz(r-4.4-any)sftrack_0.5.4.tgz(r-4.3-any)
sftrack_0.5.4.tar.gz(r-4.5-noble)sftrack_0.5.4.tar.gz(r-4.4-noble)
sftrack_0.5.4.tgz(r-4.4-emscripten)sftrack_0.5.4.tgz(r-4.3-emscripten)
sftrack.pdf |sftrack.html
sftrack/json (API)
NEWS

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

Peer review:

Bug tracker:https://github.com/mablab/sftrack/issues

Datasets:
  • raccoon - Movements of two raccoons in an urban park in Florida

On CRAN:

movementtracking-datatrajectory

6.42 score 53 stars 5 scripts 859 downloads 31 exports 13 dependencies

Last updated 1 years agofrom:c444f21969. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKOct 10 2024
R-4.5-winOKOct 10 2024
R-4.5-linuxOKOct 10 2024
R-4.4-winOKOct 10 2024
R-4.4-macOKOct 10 2024
R-4.3-winOKOct 10 2024
R-4.3-macOKOct 10 2024

Exports:active_groupactive_group<-as_sftrackas_sftrajcalc_sort_indexcheck_group_idcheck_group_namescheck_NA_coordscheck_NA_groupcheck_names_existcheck_orderedcheck_t_regularcheck_timecoord_trajdup_timestampfix_zerogeom_sftrackgroup_labelsgroup_namesis_linestringmake_c_groupingmake_s_groupmake_step_geommerge_trajnew_sftracknew_sftrajpts_trajstep_metricsstep_recalcsummary_sftrackwhich_duplicated

Dependencies:classclassIntDBIe1071KernSmoothmagrittrMASSproxyRcpps2sfunitswk

Overview of sftrack

Rendered fromsftrack1_overview.Rmdusingknitr::rmarkdownon Oct 10 2024.

Last update: 2023-03-15
Started: 2020-06-22

Reading in an sftrack

Rendered fromsftrack2_reading.Rmdusingknitr::rmarkdownon Oct 10 2024.

Last update: 2023-03-15
Started: 2020-06-22

Structure of sftrack/sftraj objects

Rendered fromsftrack3_workingwith.Rmdusingknitr::rmarkdownon Oct 10 2024.

Last update: 2023-03-15
Started: 2020-06-22

Fantastic Groups and how to use them

Rendered fromsftrack4_groups.Rmdusingknitr::rmarkdownon Oct 10 2024.

Last update: 2023-03-15
Started: 2020-09-13

Getting Spatial with sftrack

Rendered fromsftrack5_spatial.Rmdusingknitr::rmarkdownon Oct 10 2024.

Last update: 2023-03-15
Started: 2020-06-22

Readme and manuals

Help Manual

Help pageTopics
Access the active_group valueactive_group
Set new active groupactive_group<- active_group<-.c_grouping active_group<-.sftrack active_group<-.sftraj active_group_replace
Convert objects into sftrack objects.as_sftrack as_sftrack.data.frame as_sftrack.ltraj as_sftrack.sf as_sftrack.sftraj
Convert objects into sftrack objects.as_sftraj as_sftraj.data.frame as_sftraj.ltraj as_sftraj.sf as_sftraj.sftrack
Calculate a new sort index for groupscalc_sort_index
Check there is a grouping id presentcheck_group_id
Are group names equivalent for each s_group?check_group_names
Check if coordinates contain NAs in some columns but not otherscheck_NA_coords
Check there are no NAs in burstcheck_NA_group
Check if a set of column names are found in a data frame and return an error if notcheck_names_exist
Checks if grouping is ordered by time and then outputs the correct ordercheck_ordered
Check if time is regular for each burst and returns logical for each burstcheck_t_regular
Check if time is integer or posixcheck_time
check that time is uniquedup_timestamp
fix 0's to NAs in latitude and longitudefix_zero
Function to plot sftrack objects in ggplotgeom_sftrack geom_sftrack.sftrack geom_sftrack.sftraj
Shows grouping labels created from the s_group and the c_groupinggroup_labels group_labels.c_grouping group_labels.sftrack group_labels.sftraj
Display the levels of the sort indexgroup_name group_names group_names.c_grouping group_names.sftrack group_names.sftraj
A class to group movement datac.c_grouping c.s_group grouping-class make_c_grouping make_s_group
Is a trajectory geometry a linestring or a pointis_linestring
Calculate step geometries given a set of groupings, time, and geometriesmake_step_geom
Merge connected lines and create an sf objectmerge_traj
Define an sftracknew_sftrack
Define an sftrajnew_sftraj
Methods for plotting sftrack/sftrajplot.sftrack plot.sftraj plot_sftrack
Print methods for sftrackprint.sftrack Print_sftrack_objects
Print methods for sftrajprint.sftraj Print_sftraj_objects
Movements of two raccoons in an urban park in Floridaraccoon
Calculates step metrics including distance, dt, dx, and dy.step_metrics
recalculate step geometrystep_recalc
Summarize sftrack objectssummary_sftrack
Return a list of sf_POINTS or a data.frame from a sftraj objectcoord_traj pts_traj traj_geom
Which grouping/time stamp combos are duplicated.which_duplicated