Learn R Programming

BioGeoBEARS (version 0.2.1)

return_items_not_NA: Remove NAs from a vector/list

Description

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

Usage

return_items_not_NA(x)

Arguments

x
The vector of items to check for being not NA.

Value

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

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.

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

Run this code
list1 = c("N", "I", NA, "C", "K")
return_items_not_NA(list1)

Run the code above in your browser using DataLab