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

summary_sftrack()

Summarize sftrack objects

Data checks and fixes

calc_sort_index()

Calculate a new sort index for groups

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

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

A class to group movement data

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

raccoon

Movements of two raccoons in an urban park in Florida