get_indices_where_list1_occurs_in_list2_noNA: Return (first!) indices in second list matching the first...

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

View source: R/BioGeoBEARS_generics_v1.R

Description

This function will return one match (the first) for each item in the list; i.e. the second-list index for each item in the first list. Only the first hit in the second list is returned. Unlike get_indices_where_list1_occurs_in_list2, non-hits (NAs) are excluded.

Usage

1
2

Arguments

list1

The first list.

list2

The second list list.

Details

This is used by get_indices_of_branches_under_tips, which is used by extend_tips_to_ultrametricize, which can be used by section_the_tree.

Value

match_indices The match indices.

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

prt, LETTERS, get_indices_where_list1_occurs_in_list2, extend_tips_to_ultrametricize, section_the_tree, return_items_not_NA

Examples

1
2
3
list1 = c("N", "I", "C", "K")
list2 = LETTERS
get_indices_where_list1_occurs_in_list2_noNA(list1, list2)

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