HowManySeparateContinents: How many separate continents are there

Description Usage Arguments Details Value Author(s) Examples

View source: R/HowManySeparateContinents.R

Description

Given a minimum separation between continental centres records how many separate continents exist

Usage

1
2
3
4
5
6
HowManySeparateContinents(
  min_separation,
  longitudes,
  latitudes,
  EarthRad = 6367.4447
)

Arguments

min_separation

Minimum separation allowed between continental centres in kilometres.

longitudes

A vector of the decimalised longitudes for each continental centre.

latitudes

A vector of the decimalised latitudes for each continental centre.

EarthRad

Earth radius in kilometres.

Details

Nothing yet.

Value

A vector of length equal to the number of separate continents.

Author(s)

Graeme T. Lloyd graemetlloyd@gmail.com

Examples

1
HowManySeparateContinents(100, c(179, -179), c(-89, 89))

laurasoul/dispeRse documentation built on May 25, 2021, 4:50 a.m.