return_items_not_NA: Remove NAs from a vector/list

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

View source: R/BioGeoBEARS_generics_v1.R

Description

Utility function. This function returns the non-NA values from a vector.

Usage

1

Arguments

x

The vector of items to check for being not NA.

Details

This is used by get_indices_where_list1_occurs_in_list2_noNA, which 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

y The surviving, non-NA cells of a vector.

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, get_indices_where_list1_occurs_in_list2, extend_tips_to_ultrametricize, section_the_tree

Examples

1
2
list1 = c("N", "I", NA, "C", "K")
return_items_not_NA(list1)

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