.cardinalDistance | R Documentation |
This function calculates the weighted distance moved by a mass represented by set of cells which fall north, south, east, or west of a given location (i.e., typically the centroid of the starting population). Values >0 confer movement to the north, south, east, or west of this location.
.cardinalDistance(
direction,
longOrLat,
coordVect,
x1,
x2,
refCoord,
x1weightedLongs,
x1weightedLats,
x2weightedLongs,
x2weightedLats,
x1weightedElev = NULL,
x2weightedElev = NULL
)
direction |
Any of: |
longOrLat |
Numeric matrix, latitude or longitudes. If |
coordVect |
Vector of latitude or longitude of cell centers, depending on value of |
x1 |
Matrix of weights in time 1 (i.e., population size). |
x2 |
Matrix of weights in time 2 (i.e., population size). |
refCoord |
Numeric, latitude or longitude (depending on |
x1weightedLongs |
Matrix of longitudes weighted (i.e., by population size, given by |
x1weightedLats |
Matrix of latitudes weighted (i.e., by population size, given by |
x2weightedLongs |
Matrix of longitudes weighted (i.e., by population size, given by |
x2weightedLats |
Matrix of latitudes weighted (i.e., by population size, given by |
x1weightedElev |
Matrix of elevations weighted by x1 or |
x2weightedElev |
Matrix of elevations weighted by x2 or |
A list object with distance moved and abundance of all cells north/south/east/west of reference point.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.