make_dispersal_multiplier_matrix: Make a default matrix of relative dispersal probabilities...

Description Usage Arguments Details Value Note Author(s) References See Also Examples

View source: R/BioGeoBEARS_basics_v1.R

Description

Given either a list of areas, or a list of states, this function provides a square dispersal matrix giving the relative probability of dispersal between areas. The function fills in these dispersals probabilities with the value 1. The user can then modify this as desired. dispersal_multipliers_matrix Default NULL distances_mat Default NULL x_exponent Default 0

Usage

1
2
3
4
  make_dispersal_multiplier_matrix(areas = NULL,
    states_list = default_states_list(),
    dispersal_multipliers_matrix = NULL,
    distances_mat = NULL, x_exponent = 0)

Arguments

areas

A list of areas; if NULL, the states list will be used.

states_list

A list of states, where each state consists of a list of areas. A default example list is provided.

dispersal_multipliers_matrix

Default NULL.

distances_mat

Default NULL.

x_exponent

Default 0.

Details

If only a states list is given, the list of areas is calculated by getting unique values from the concatenated states list.

Value

dispersal_multiplier_matrix A square matrix, with 1s for all cells.

Note

Go BEARS!

Author(s)

Nicholas J. Matzke matzke@berkeley.edu

References

http://phylo.wikidot.com/matzke-2013-international-biogeography-society-poster

Matzke_2012_IBS

FosterIdiots

See Also

make_relprob_matrix_de

Examples

1
2
3
4
5
testval=1
make_dispersal_multiplier_matrix(areas=NULL,
states_list=list("_", c("A"), c("B"), c("C"),
c("A","B"), c("B","C"), c("A","C"), c("A","B","C")))
make_dispersal_multiplier_matrix(areas=c("A","B","C","D"))

Example output

Loading required package: rexpokit
Loading required package: cladoRcpp
Loading required package: ape
Loading required package: phylobase

Attaching package: 'phylobase'

The following object is masked from 'package:ape':

    edges

  A B C
A 1 1 1
B 1 1 1
C 1 1 1
  A B C D
A 1 1 1 1
B 1 1 1 1
C 1 1 1 1
D 1 1 1 1

BioGeoBEARS documentation built on May 29, 2017, 8:36 p.m.