dir_add_csv {psyosphere}R Documentation

Bind CSV data to data frame

Description

Read CSV file in directory and bind data to a data frame.

Usage

dir_add_csv(tracks, dir, merge_by = "id")

Arguments

tracks

psyo. Data frame with 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.

Value

Data frame

Credit

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

Note

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.

Author(s)

Benjamin Ziepert

See Also

dir_get_gpx

Examples

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")

[Package psyosphere version 0.1 Index]