trace <- MigrationDetectR::example_trace
# Detect segments
segments <-
detect_segments(
locs = trace$location,
times = trace$timestamp,
param_min_days = 3,
param_prop_days = 0.06,
param_window_size_days = 7,
param_ol_min_frac= 0.5)
nrow(segments) # check the number of detected segments
head(segments) # check the segments
Run the code above in your browser using DataLab