sftrack0.5.4 package

Modern Classes for Tracking and Movement Data

step_metrics

Calculates step metrics including distance, dt, dx, and dy.

step_recalc

recalculate step geometry

summary_sftrack

Summarize sftrack objects

traj_geom

Return a list of sf_POINTS or a data.frame from a sftraj object

which_duplicated

Which grouping/time stamp combos are duplicated.

active_group

Access the active_group value

active_group_replace

Set new active group

as_sftrack

Convert objects into sftrack objects.

as_sftraj

Convert objects into sftrack objects.

calc_sort_index

Calculate a new sort index for groups

check_group_id

Check there is a grouping id present

check_group_names

Are group names equivalent for each s_group?

check_NA_coords

Check if coordinates contain NAs in some columns but not others

check_NA_group

Check there are no NAs in burst

check_names_exist

Check if a set of column names are found in a data frame and return an...

check_ordered

Checks if grouping is ordered by time and then outputs the correct ord...

check_t_regular

Check if time is regular for each burst and returns logical for each b...

check_time

Check if time is integer or posix

dup_timestamp

check that time is unique

fix_zero

fix 0's to NAs in latitude and longitude

geom_sftrack

Function to plot sftrack objects in ggplot

group_labels

Shows grouping labels created from the s_group and the c_grouping

group_name

Display the levels of the sort index

grouping-class

A class to group movement data

is_linestring

Is a trajectory geometry a linestring or a point

make_step_geom

Calculate step geometries given a set of groupings, time, and geometri...

merge_traj

Merge connected lines and create an sf object

new_sftrack

Define an sftrack

new_sftraj

Define an sftraj

plot_sftrack

Methods for plotting sftrack/sftraj

Print_sftrack_objects

Print methods for sftrack

Print_sftraj_objects

Print methods for sftraj

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.

  • Maintainer: Mathieu Basille
  • License: MIT + file LICENSE
  • Last published: 2023-03-16