get_indices_where_list1_occurs_in_list2: 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.

Usage

1

Arguments

list1

The first list.

list2

The second list list.

Details

This is used by prt.

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_noNA

Examples

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

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