average_coordinates {psyosphere} | R Documentation |
Calculates the mean position of coordinates within a time interval.
average_coordinates(tracks, num, units = "minutes", t_id = "id")
tracks |
|
num |
num The amount of time. |
units |
char Unit for time measurement. For example: "seconds", "minutes" or "days". See |
t_id |
character or numeric. Column name in |
This function can be used to compress huge amounts of data to speed up the calculations.
The average for the columns time, lon and lat is calculated. See geomean
for details. Other columns will be preserved but only the first row of every interval is considered.
data frame
lon |
num averaged longitude |
lat |
num averaged latitude |
time |
POSIXct averaged time |
other |
Preserved columns from input |
If you use Psyosphere for commercial use or research, please support us by include one off the following references:
Creative Commons: "Psyosphere" by B. Ziepert, E. G. Ufkes & P. W. de Vries from analyse-gps.com / CC-BY-SA-4.0
APA: de Vries, P. W., et al. (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.
geomean
, average_duplicates
, select_test_sample
data(psyo_geomean) psyosphere::average_coordinates(psyo_geomean,30,"seconds")