Return the ordering of locations decreasing in their
distance to the average location. Reverses middleout.
Usage
order_outsidein(locs, lonlat = FALSE)
Value
A vector of indices giving the ordering, i.e.
the first element of this vector is the index of the location farthest from the center.
Arguments
locs
A matrix of locations. Each row of locs contains a location, which can
be a point in Euclidean space R^d, a point in space-time R^d x T,
a longitude and latitude (in degrees) giving a point on the sphere,
or a longitude, latitude, and time giving a point in the sphere-time domain.
lonlat
TRUE/FALSE whether locations are longitudes and latitudes.