des_length: Get the number of coordinates within each track
Description
Get the number of coordinates within each track
Usage
des_length(
tracks, cgaps = "", cname = "length", drop = TRUE, t_id = "id", des_df = ""
)
Arguments
tracks
psyo
. Data frame with tracks.
cgaps
character
. Column name of tracks
that marks gaps with TRUE
.
cname
character
. Column name of the returned calculation result.
drop
logical
. If TRUE
and only one observation is returned drop the data frame
and collapse the return value to a vector
.
t_id
character or numeric. Column name in tracks
that identifies the separate tracks.
des_df
data frame
. Function results will be merge with this data frame.
Value
Data frame
t_idunique id of the track
cnamecalculated result of the track
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.
Examples
Run this code# NOT RUN {
# Get data
data(psyo_rounds2)
tracks <- psyo_rounds2
# Calculations
descriptive <- des_length(tracks)
# }
Run the code above in your browser using DataLab