Summarise each realised path by merging consecutive stationary periods that
were assigned to the same grid cell. Paths are identified by j and, when
present, chain.
Arguments
- paths
A path data frame containing
stap_id,ind,lat, andlon, and optionallyj,chain,start, andend.- stap
A stationary-period data frame containing
stap_id,start, andend. IfNULL, these columns are taken frompaths.- label_stap_id
logical; if
TRUE, replacestap_idin the output with a character label of the form"{stap_id_start}->{stap_id_end}. The numericstap_id_startandstap_id_endcolumns are always kept.
Value
A data frame with one row per collapsed stay and columns
stap_id, stap_id_start, stap_id_end, ind, lat, lon, start,
end, known, j, and chain.
See also
Other path:
path_summary()
