MagicPortal: Sweepstakes dispersal

Description Usage Arguments Value Author(s) Examples

View source: R/MagicPortal.R

Description

If sweeptakes dispersal occurs picks a landing spot.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
MagicPortal(
  start_longitude,
  start_latitude,
  end_longitude,
  end_latitude,
  start_continent,
  touching_continents,
  continent_centres,
  continent_radius,
  EarthRad = 6367.4447
)

Arguments

start_longitude

Decimalised longitude of organism's dispersal starting point.

start_latitude

Decimalised latitude of organism's dispersal starting point.

end_longitude

Decimalised longitude of organism's dispersal ending point.

end_latitude

Decimalised latitude of organism's dispersal ending point.

start_continent

Number of starting continent.

touching_continents

Character vector of continental clusters separated by ampersands.

continent_centres

A two-column (longitude, latitude) of the centres of each continent in order (1 at top to N at bottom).

continent_radius

The radius of the continent in kilometres.

EarthRad

Earth radius in kilometres.

Value

The new position of the organism following a sweepstakes dispersal.

Author(s)

Laura C. Soul lauracsoul@gmail.com and Graeme T. Lloyd graemetlloyd@gmail.com

Examples

1
#MagicPortal()

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