binary_distance_matrix: (Internal) Create a binary distance matrix

Description Usage Arguments Value

View source: R/utils.R

Description

This is a wrapper function that returns a logical matrix, of 1 if distance between element i, j is less than or equal to the distance_cutoff, and 0 otherwise.

Usage

1
binary_distance_matrix(facility, user, distance_cutoff)

Arguments

facility

data.frame of facilities

user

data.frame of users

distance_cutoff

integer of distance to use for cutoff

Value

a logical matrix, of 1 if distance between element i, j is less than or equal to the distance_cutoff, and 0 otherwise.


njtierney/copertura documentation built on Aug. 10, 2018, 2:27 p.m.