getareas_from_tipranges_object: Get the names of the areas in a tipranges object

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

View source: R/BioGeoBEARS_basics_v1.R

Description

This function extracts the names of the areas in a tipranges object. Just a shortcut for names(tipranges@df).

Usage

1

Arguments

tipranges

An object of class tipranges.

Value

areanames, a list of the names of the areas

Note

Go BEARS!

Author(s)

Nicholas J. Matzke matzke@berkeley.edu

See Also

define_tipranges_object, areas_list_to_states_list_old, areas_list_to_states_list_new, tipranges_to_tip_condlikes_of_data_on_each_state

Examples

1
2
3
4
5
6
testval=1
tipranges_object = define_tipranges_object()
tipranges_object

areanames = getareas_from_tipranges_object(tipranges_object)
areanames

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

An object of class "tipranges"
numeric(0)
Slot "df":
     A B C
tip1 1 0 0
tip2 0 1 0
tip3 0 0 1

[1] "A" "B" "C"

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