agg_trip: aggregate NDS ping data to shift or trips new datasets.

Description Usage Arguments Examples

View source: R/agg_trip.R

Description

This function produce new datasets with starting and ending variables, which may include date and time, latitude, longitude.

Usage

1
agg_trip(data, trip_id)

Arguments

data

The data to be passed on.

trip_id

The ID column generated by the 'segment()' function.

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.

time_diff

The time difference between the nearest two pings.

Examples

1
agg_trip(data = dat, trip_id = id)

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