speedyseq icon indicating copy to clipboard operation
speedyseq copied to clipboard

Add checks to `subset_*()` commands

Open mikemc opened this issue 3 years ago • 0 comments

Currently, no warning is given for typos such as subset_taxa(ps, phylum = "Bacteroidetes"). Instead, this command will simply run and not filter out anything. Contrast with dplyr::filter(), which gives a helpful error message suggesting to use == instead of =.

Adding such behavior seems unambiguously beneficial, but there is perhaps some value in the simplicity of keeping the subset_ commands as simple wrappers around base::subset().

mikemc avatar Sep 12 '20 14:09 mikemc