mark_gap_segments: Adding column with segment names between gaps

Description Usage Arguments Value Credit Author(s) See Also Examples

View source: R/mark_gap_segments.R

Description

Adding column with segment names between gaps

Usage

1
2
3
mark_gap_segments(
  tracks, cgaps, bind = TRUE, drop = TRUE, cname = "gap_segments", t_id = "id"
)

Arguments

tracks

psyo. Data frame with tracks.

cgaps

character. Column name of tracks that marks gaps with TRUE.

bind

logical. Return the distance as list (FALSE) or add it to tracks (TRUE).

drop

logical. If TRUE and only one observation is returned drop the data frame and collapse the return value to a vector.

cname

character. Column name of new column in tracks that contains the segment names.

t_id

character or numeric. Column name in tracks that identifies the separate tracks.

Value

psyo

Credit

If you use 'psyosphere' for commercial use or research, please support us by include one off the following references:

Author(s)

Benjamin Ziepert. Please send feedback to: feedback-psyosphere@analyse-gps.com.

See Also

mark_speed_gaps, mark_time_gaps

Examples

1
2
3
4
5
6
7
8
9

psyosphere documentation built on July 2, 2020, 12:08 a.m.