Learn R Programming

osrm (version 1.0)

osrmTableErrors: Detect Errors in Distance Matrices

Description

Detect errors in distance matrices.

Usage

osrmTableErrors(mat)

Arguments

mat
A distance matrix.

Value

  • A list of two vectors of identifier: originErrors and destinationErrors.

See Also

osrmTable, osrmTableOD

Examples

Run this code
# Load data
data("com")
# Travel time matrix
distcom <- osrmTable(com[1:50,], id = "comm_id", x =  "lon",y =  "lat")
# First 5 rows and columns
distcom[1:5,1:5]
# Get errors
osrmTableErrors(distcom)

Run the code above in your browser using DataLab