Learn R Programming

psyosphere (version 0.1.6)

dir_add_csv: 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:

  • 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.

See Also

dir_get_gpx

Examples

Run this code
# NOT RUN {
data(psyo)
csv_dir <- system.file("extdata", "ids.csv", package = "psyosphere")
psyo <- dir_add_csv(psyo, csv_dir)
# }

Run the code above in your browser using DataLab