Creation/conversion

as_sftrack()

Convert objects into sftrack objects.

as_sftraj()

Convert objects into sftrack objects.

new_sftrack()

Define an sftrack

new_sftraj()

Define an sftraj

print(<sftrack>)

Print methods for sftrack

print(<sftraj>)

Print methods for sftraj

as_sftrack(<track_xy>) as_sftraj(<track_xy>) sftrack_to_track_xy()

convert to and from amt class 'track_xy'

as_sftrack(<ltraj>) as_sftraj(<ltraj>) sftrack_to_ltraj() sftraj_to_ltraj()

convert to and from ltraj

as_sftrack(<trackeRdata>) as_sftraj(<trackeRdata>) sftrack_to_trackeR() sftraj_to_trackeR()

convert to and from trackeR

Data checks and fixes

calc_sort_index()

Calculate a new sort index for groups

calc_dx() calc_dy() calc_difftime() calc_steplen() calc_absangle() calc_speed() calc_relangle()

step calculation functions

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_group_id()

Check there is a grouping id present

check_group_names()

Are group names equivalent for each s_group?

check_names_exist()

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

check_ordered()

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

check_t_regular()

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

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

is_linestring()

Is a trajectory geometry a linestring or a point

which_duplicated()

Which grouping/time stamp combos are duplicated.

Plotting

geom_sftrack()

Function to plot sftrack objects in ggplot

plot(<sftrack>) plot(<sftraj>)

Methods for plotting sftrack/sftraj

Group management

active_group()

Access the active_group value

`active_group<-`()

Set new active group

group_labels()

Shows grouping labels created from the s_group and the c_grouping

group_names()

Display the levels of the sort index

group_summary()

Summarize sftrack objects

make_s_group() make_c_grouping() c(<s_group>) c(<c_grouping>)

A class to group movement data

Time management

t1() t2()

Functions to get start and end points of an sftrack object.

make_timestamp()

Make timestamp object from a vector of time

t2_by_group()

Calculate t2 based on groupings

sft_time()

A class to store time and time intervals

time_recalc()

recalculate time objects from t1

Working with geometries

make_step_geom()

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

merge_traj()

Merge connected lines and create an sf object

step_metrics()

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

step_recalc()

recalculate step geometry

pts_traj() coord_traj()

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

Datasets

raccoons

Movements of two raccoons in Tree Tops Park, Florida