Skip to content

ps_calc_richness varname not working if detection != 0 #183

@pguarinovignon

Description

@pguarinovignon

Hello,
I've encounter a small problem when using ps_calc_richness with the option 'index = "observed",detection = 1, varname = "richness_1").
The new column created does not take the varname I set up but the number given by the detection threshold.
I traced the problem, and it probably comes from the microbiome:richness function which default behaviour is to return a vector named with the detection number when it is provided.
The wrapper should probably take this into account so the good varname is applied.
Thank you for your work, I really enjoy using your package otherwise.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions