Learn R Programming

psyosphere (version 0.1.6)

apply_shift: Copy columns and offset the index of the copied column

Description

Copy columns and offset the index of the copied column

Usage

apply_shift(tracks, factor = 1, bind = TRUE, csubset = "", t_id = "id")

Arguments

tracks

psyo. Data frame with tracks.

factor

character or numeric. Number of shifted copied to be created. With - or + a direction can be indicated. For instance, +1 copies the value of the following coordinate. -1 copies the value of the previous coordinate.

bind

logical. Whether to bind the row to tracks or to return it as separate column.

csubset

list. A list of column names in tracks that will be copied.

t_id

character or numeric. Column name in tracks that identifies the separate tracks.

Value

psyo

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

psyo,apply_tracks

Examples

Run this code
# NOT RUN {
data(psyo)
apply_shift(psyo, csubset = c("lon", "lat"))
# }

Run the code above in your browser using DataLab