distance_matrix_cpp: Create a matrix of distances between two areas

View source: R/RcppExports.R

distance_matrix_cppR Documentation

Create a matrix of distances between two areas

Description

Create a matrix of distances between two areas

Usage

distance_matrix_cpp(facility, user)

Arguments

facility

a matrix with longitude and latitude in the first two columns

user

a matrix with longitude and latitude in the first two columns

Value

a matrix of distances in metres between each user and facility, with nrow(user) rows and nrow(facility) columns.


njtierney/maxcovr documentation built on Nov. 27, 2024, 7:51 a.m.