Description Usage Arguments Value See Also Examples
geodistance calculates distances in miles between a set of observations and a location. Distances are calculated in miles using the great circle formula. Geographic coordinates must be expressed in latitudes and longitudes.
1 | geodistance(longvar, latvar, lotarget, latarget, dcoor = FALSE)
|
longvar |
Longitude variable, in degrees. |
latvar |
Latitude variable, in degrees. |
lotarget |
Target longitude. |
latarget |
Target latitude. |
dcoor |
If dcoor = T, also calculates the distance east (deast) and north (dnorth) of the target point. |
dist |
A vector with the distance in miles between each data point and the target point. |
dnorth |
A vector with the number of miles north of the target point for each data point. |
deast |
A vector with the number of miles east of the target point for each data point. |
geodensity
geoshape
1 2 |
Loading required package: lattice
Loading required package: locfit
locfit 1.5-9.1 2013-03-22
Loading required package: maptools
Loading required package: sp
Checking rgeos availability: FALSE
Note: when rgeos is not available, polygon geometry computations in maptools depend on gpclib,
which has a restricted licence. It is disabled by default;
to enable gpclib, type gpclibPermit()
Loading required package: quantreg
Loading required package: SparseM
Attaching package: 'SparseM'
The following object is masked from 'package:base':
backsolve
Loading required package: RANN
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.