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

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

 if (FALSE) {
get_tracks(df, nested = TRUE, geometry = TRUE, summary = TRUE, dt_field = NULL)
}