segment: 'segment' NDS ping data by adding a trip or shift ID column.

Description Usage Arguments Examples

View source: R/segment.R

Description

This function segments NDS ping data to shifts and trips

Usage

1
segment(speed, threshold, time_diff)

Arguments

speed

Real time speed of the ping

time_diff

The time difference between the nearest two pings.

threhold

The threshold you want to separate the ping (in minutes). It is recommended to use 30 minutes to separate into trips, and 8*60 minutes to separate into shifts.

Examples

1
segment(dat$speed, 30, d$time_diff)

caimiao0714/NDS documentation built on Nov. 4, 2019, 8:22 a.m.