# relational.clustering: Relational Clustering In fossil: Palaeoecological and Palaeogeographical Analysis Tools

## Description

A method to cluter a number of samples using a relational (dissimila

## Usage

 `1` ```relational.clustering(dist, clusters = 2) ```

## Arguments

 `dist` pairwise distance matrix `clusters` number of clusters required

## Details

This function will calculate the shortest distance (portion of a Great Circle) in kilometers between two points on the Earth given their latitude and longitude.

## Value

Arc distance between two points on the Earth's surface in kilometers.

## Note

The distance calculated may be up to 0.2% inaccurate, as this function treats the Earth as a sphere with a circumference of 40003 km, rather than an ellipsoid like it actually is.

Matthew Vavrek

## References

The formulas for the Haversine distance function were taken from the Dr. Math website at http://mathforum.org/library/drmath/view/55417.html

To calculate pairwise distances between a list of points see `earth.dist`, or to calculate an area enclosed by three points on the Earth's surface, see `earth.tri`

## Examples

 ```1 2``` ```##distance between 23 degrees N 54 degrees E and 32 degrees S 67 degrees E deg.dist(23,54,-32,67) ```

### Example output

```Loading required package: sp