Eliminates unmatched (NAs) and invalid taxa from a rotl::tnrs_match_names()
or tnrs_match()
output
Useful to get ott ids to retrieve an induced synthetic Open Tree of Life.
Needed because using include_suppressed = FALSE
in rotl::tnrs_match_names()
does not drop all invalid taxa.
Source: R/opentree_taxonomy_general.R
clean_tnrs.Rd
Eliminates unmatched (NAs) and invalid taxa from a rotl::tnrs_match_names()
or tnrs_match()
output
Useful to get ott ids to retrieve an induced synthetic Open Tree of Life.
Needed because using include_suppressed = FALSE
in rotl::tnrs_match_names()
does not drop all invalid taxa.
Usage
clean_tnrs(
tnrs,
invalid = c("barren", "extinct", "uncultured", "major_rank_conflict", "incertae",
"unplaced", "conflict", "environmental", "not_otu"),
remove_nonmatches = FALSE
)