states_list_indexes_to_areastxt: States (ranges) lists to txt string of the areas

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

View source: R/BioGeoBEARS_basics_v1.R

Description

This is a utility function.

Usage

1
2
  states_list_indexes_to_areastxt(states_list, areanames,
    counting_base = 0, concat = TRUE, sep = "")

Arguments

states_list

A list of states, where each state consists of a list of areas.

areanames

A list of areanamess.

counting_base

Does states_list start indexing areas from 0 (default) or 1?

concat

If TRUE (default), merge the areas in a state into a single string.

sep

Character to merge on, as in paste. Default "".

Value

tiparea A string.

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

See Also

getname, order_tipranges_by_tree_tips, define_tipranges_object, save_tipranges_to_LagrangePHYLIP

Examples

1
test=1

Example output

Loading required package: rexpokit
Loading required package: SparseM

Attaching package: 'SparseM'

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

    backsolve

Loading required package: Rcpp
Loading required package: cladoRcpp
Loading required package: ape
Loading required package: phylobase

Attaching package: 'phylobase'

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

    edges

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