Design a new function adding taxonomic ranks in reference to existing ranks.
This function may looks like this:
add_levels(x, before, after)
where x is a character vector with the names of ranks to be inserted, before is a vector of the same length of x indicating before which ranks the new ranks have to be inserted, and after (ignored if before not missing).
Design a new function adding taxonomic ranks in reference to existing ranks.
This function may looks like this:
where
x
is a character vector with the names of ranks to be inserted,before
is a vector of the same length ofx
indicating before which ranks the new ranks have to be inserted, andafter
(ignored ifbefore
not missing).