ifcb_is_diatom.RdThis function takes a list of taxa names, cleans them, retrieves their corresponding classification records from the World Register of Marine Species (WoRMS), and checks if they belong to the specified diatom class. The function only uses the first name (genus name) of each taxa for classification.
ifcb_is_diatom(taxa_list, diatom_class = "Bacillariophyceae")A character vector containing the list of taxa names.
A character string or vector specifying the class name(s) to be identified as diatoms, according to WoRMS. Default is "Bacillariophyceae".
A logical vector indicating whether each cleaned taxa name belongs to the specified diatom class.
taxa_list <- c("Nitzschia_sp", "Chaetoceros_sp", "Dinophysis_norvegica", "Thalassiosira_sp")
ifcb_is_diatom(taxa_list)
#> [1] TRUE TRUE FALSE TRUE