prepare_route: Prepare a 'data.frame' for use in 'leaflet_route' and...

Description Usage Arguments Details Value

Description

Prepare a data.frame for use in leaflet_route and plot_route

Usage

1
prepare_route(x, session = 1, threshold = TRUE, ...)

Arguments

x

a trackeRdata object.

session

which session to prepare the data.frame for?

threshold

if TRUE (default), then thresholds are applied to x prior to preparing the data.frame.

...

Addiditonal arguments to be passed to threshold.

Details

To be used internally in mapping function and rarely by the user.

Value

A data.frame with variables longitude, latitude, speed, SessionID, longitude0, longitude1, latitude0, latitude1. The observations are ordered according to the timestamp they have in x. A suffix of 0 indicates 'start' and a suffix of 1 indicates 'end' at any given observation.


trackeR documentation built on May 15, 2019, 5:04 p.m.