data(ITS1)
# for demonstration purpose only
# the ITS1 dataset missing species rank, but it's ok
# the problematic taxonomy lineages are those missing proper prefix
# at each rank
# see ?RAM.rank.formatting
valid.taxonomy(data=list(ITS1=ITS1))
input.ranks <- c("kingdom", "phylum", "class", "order", "family",
"genus")
reform.ITS1 <- reformat.taxonomy(list(ITS1=ITS1),
input.ranks=input.ranks,
sep="; ")[[1]]Run the code above in your browser using DataLab