I would like to be able to use or_fun to combine some (but not all) species, before running and_fun.
An example situation: I have fossil evidence of hapoxylon at my site, but cannot identify it further. I can generate a vector of the modern species in hapoxylon, but that group of species would be better accounted for using the or_fun than the and_fun, followed by passing the output on, along with the rest of the taxa identified at that site, to the and_fun.
Currently I replace the relevant species names with a single name for the group before proceeding. I think this is functionally the same but for the smoothing- it looks similar when plotted using a three species test case below (brown=manual combine, pink = or_fun).

If that is right, perhaps there is an alternative simple function that could be added for users to apply after getextr and before dens_obj, that does something like:
comb <- c("tax a", "tax b", "tax c")
comb.name <- c("comb.tax")
df$tax[df$tax %in% comb ] <- comb.name
I would like to be able to use or_fun to combine some (but not all) species, before running and_fun.

An example situation: I have fossil evidence of hapoxylon at my site, but cannot identify it further. I can generate a vector of the modern species in hapoxylon, but that group of species would be better accounted for using the or_fun than the and_fun, followed by passing the output on, along with the rest of the taxa identified at that site, to the and_fun.
Currently I replace the relevant species names with a single name for the group before proceeding. I think this is functionally the same but for the smoothing- it looks similar when plotted using a three species test case below (brown=manual combine, pink = or_fun).
If that is right, perhaps there is an alternative simple function that could be added for users to apply after getextr and before dens_obj, that does something like: