Learn R Programming

BioGeoBEARS (version 0.2.1)

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

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

get_indices_where_list1_occurs_in_list2(list1, list2)

Arguments

list1
The first list.
list2
The second list list.

Value

match_indices The match indices.

Details

This is used by prt.

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

Run this code
list1 = c("N", "I", "C", "K")
list2 = LETTERS
get_indices_where_list1_occurs_in_list2(list1, list2)

Run the code above in your browser using DataLab