Description Usage Arguments Value Credit Author(s) See Also Examples
View source: R/distance_point.R
Add the distances to a point from each coordinate
1 2 3 | distance_point(
tracks, point, bind = TRUE, drop = TRUE, cname = "dis_to_point_in_m"
)
|
tracks |
|
point |
list. A list, matrix or data.frame with the columns lon (numeric) and lat (numeric) and one row. |
bind |
logical. Return the distance as list ( |
drop |
|
cname |
|
psyo
If you use 'psyosphere' for commercial use or research, please support us by include one off the following references:
MIT license: "psyosphere" by B. Ziepert, E. G. Ufkes & P. W. de Vries from https://CRAN.R-project.org/package=psyosphere
APA: Ziepert, B., Ufkes, E., & de Vries, P. W. (2018). psyosphere: Analyse GPS Data. Retrieved from https://CRAN.R-project.org/package=psyosphere
APA: Vries, P., Ziepert, B., & Ufkes, E. (2016). "De psychologie van bewegingen GPS-technologie voor de analyse van natuurlijk gedrag." Tijdschrift voor Human Factors 2: 11-15.
Benjamin Ziepert. Please send feedback to: feedback-psyosphere@analyse-gps.com.
distance_line
,distance_peers
, distance_psyo
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ## Not run:
data(psyo)
# Un-named list
point <- c(4.936197, 52.314701)
distance_point(psyo[1,], point, bind = FALSE)
# Named list
point <- c(lat = 52.314701, lon = 4.936197)
distance_point(psyo[1,], point, bind = FALSE)
# Multiple distance to point
coordinates <- distance_point(psyo, point)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.