dir_add_csv: Bind CSV data to data frame

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

View source: R/dir_add_csv.R

Description

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

Usage

1
2
3
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

1
2
3
4
5
6
## Not run: 
data(psyo)
csv_dir <- system.file("extdata", "ids.csv", package = "psyosphere")
psyo <- dir_add_csv(psyo, csv_dir)

## End(Not run)

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