des_length: Get the number of coordinates within each track

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

View source: R/des_length.R

Description

Get the number of coordinates within each track

Usage

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

unique id of the track

cname

calculated result of the track

Credit

If you use 'psyosphere' for commercial use or research, please support us by include one off the following references:

Author(s)

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

See Also

des_summary, des_duplicates, des_first, des_last, des_max, des_min, des_mean, des_sd, des_sum

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
# Get data
data(psyo_rounds2)
tracks <- psyo_rounds2

# Calculations
descriptive <- des_length(tracks)

## End(Not run)

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