distance_psyo: Add distance to another track in psyo format

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

View source: R/distance_psyo.R

Description

Add distance to another track in psyo format.

Usage

1
2
3
distance_psyo(
  tracks1, tracks2, t_id1 = "id", t_id2 = "id", bind = TRUE, drop = TRUE
)

Arguments

tracks1

psyo. Data frame with tracks.

tracks2

psyo. Data frame with tracks.

t_id1

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

t_id2

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

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.

Value

psyo

Credit

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

Note

Be aware: this function can take a lot time. You can use average_coordinates first to test your script with a small sample.

Author(s)

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

See Also

distance_line,distance_peers, distance_point

Examples

1
2
3
4
5
6
## Not run: \dontrun{
data(psyo_rounds2)
psyo_distance <- select_test_sample(psyo_rounds2, 5)
psyo_distance <- distance_psyo(psyo_rounds2, psyo_rounds2)
}
## End(Not run)

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