# \donttest{
# Single AphiaID
single_taxa <- get_worms_classification(109604, verbose = FALSE)
print(single_taxa)
# Multiple AphiaIDs
multiple_taxa <- get_worms_classification(c(109604, 376667), verbose = FALSE)
print(multiple_taxa)
# Hierarchy with ranks in the string
with_rank <- get_worms_classification(c(109604, 376667),
add_rank_to_hierarchy = TRUE,
verbose = FALSE)
# Print hierarchy columns with ranks
print(with_rank$worms_hierarchy[1])
# Compare with result when add_rank_to_hierarchy = FALSE
print(multiple_taxa$worms_hierarchy[1])
# }
Run the code above in your browser using DataLab