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

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

View source: R/apply_shift.R

Description

Copy columns and offset the index of the copied column

Usage

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

Note

This function drops sometimes attributes.

Author(s)

Benjamin Ziepert. Please send feedback to: feedback-psyosphere@analyse-gps.com.

See Also

psyo,apply_tracks

Examples

1
2
3
4
5
## Not run: 
data(psyo)
apply_shift(psyo, csubset = c("lon", "lat"))

## End(Not run)

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