Learn R Programming

crimelinkage (version 0.0.4)

compareSpatial: Make spatial evidence variables

Description

Calculates spatial distance between crimes (in km)

Usage

compareSpatial(C1, C2, longlat = FALSE)

Arguments

C1
(n x 2) matrix of coordinates for the crimes
C2
(n x 2) matrix of coordinates for the crimes
longlat
(logical) if true, the the coordinates are in (Long,Lat), else

Value

numeric vector of distances between the crimes (in km)