Learn R Programming

TargomoR (version 0.2.0)

deriveSources: Derive Sources/Targets

Description

Function to create the sources needed to query the Targomo API.

Usage

createIds(data = NULL, id = NULL)

createPoints(data = NULL, lat = NULL, lng = NULL, id = NULL)

deriveSources(points, options)

deriveTargets(points)

Arguments

data

The data object

id

The id vector or formula to resolve

lat, lng

The lat/lng vectors or formulae to resolve

points

A processed data object (for sources/targets).

options

A processed options object (for sources).

Value

A data.frame of sources/targets, with IDs attached.