get_tracks: Extract periods of mobile activity

View source: R/get_tracks.R

get_tracksR Documentation

Extract periods of mobile activity

Description

get_tracks() extracts periods of mobile activity or tracks identified by circleclust()

Usage

get_tracks(df, nested = TRUE, geometry = TRUE, summary = TRUE, dt_field = NULL)

Arguments

df

a data frame created by circleclust() containing cluster group (cluster_grp)

nested

logical; if TRUE, metadata for each track is nested in a list column (t_data)

geometry

logical; if TRUE, an sf tibble with a corresponding geometry column is returned. Tracks are converted into a LINESTRING, which connect the beginning and ending coordinate of each track.

summary

logical; if TRUE, the returned data frame is appended with summary values for duration, start time, and end time for each track. The dominant bearing of each track is also calculated.

dt_field

character; name of datetime field used to calculate summary information.

Value

a data frame or sf object

Examples

 ## Not run: 
get_tracks(df, nested = TRUE, geometry = TRUE, summary = TRUE, dt_field = NULL)

## End(Not run)


wolfeclw/circleclust documentation built on Aug. 13, 2024, 3:33 a.m.