create_distance_matrix: Calculate the distance of each unit to every other unit.

Description Usage Arguments Value

View source: R/create_distance_matrix.R

Description

Calculate the distance of each unit to every other unit.

Usage

1
create_distance_matrix(latitudes, longitudes, ...)

Arguments

latitudes

A vector of latitudes of length N

longitudes

A vector of longitudes of length N

...

Takes distances arguments. Set km, meters, miles or feet to true in order to change the measure of distance that is output by the function.

Value

An N x N distance matrix


jaspercooper/distancematrix documentation built on May 18, 2019, 5:55 p.m.