dir_add_csv {psyosphere} | R Documentation |
Read CSV file in directory and bind data to a data frame.
dir_add_csv(tracks, dir, merge_by = "id")
tracks |
|
dir |
The path to the CSV file. |
merge_by |
The column in the data_frame and the CSV file that is used to merge the data. |
Data frame
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.
The function ignores multiple segments in the GPX file. If you want to find the gaps between the segments you could use the functions t_time_difference
and mark_time_gaps.
Further does the function sort the data by time.
Benjamin Ziepert
data(psyo) # You should copy the ids.csv file from the psyosphere package to make this example work # tracks <- psyosphere::dir_add_csv(psyo, "demo/data/psyo_rounds/ids.csv")