kamapu / vegtable

Handling vegetation-plot data sets
http://kamapu.github.io/vegtable/
7 stars 0 forks source link

Changing taxonomic level in crosstab #43

Closed marbotte closed 1 year ago

marbotte commented 1 year ago

Would it be possible to change the taxonomic level in the function crosstab, as an argument

kamapu commented 1 year ago

Hi, @marbotte. You can still edit your request. For it, you don't need a minimal example (I already understand it). I will set it as priority.

kamapu commented 1 year ago

A possible strategy is to insert an argument level, which is passed to taxlist::merge_taxa() (same argument's name) and run this function, if not missing.

Edited comment:

It is better having two arguments, one (level) selecting ranks for the cross table, and one (include_lower) for running merge_taxa() in advance.

marbotte commented 1 year ago

Ok, nice! Thanks @kamapu ! Please let me know whether I can help with that. I am willing to put my hands in that if needed! I won't be quick, but I can work on a branch doing specifically that if it helps!

kamapu commented 1 year ago

OK, I see, I need first to work at taxlist: https://github.com/ropensci/taxlist/issues/40