SchlossLab / schtools

Schloss Lab Tools for Reproducible Microbiome Research 💩
http://www.schlosslab.org/schtools
Other
29 stars 11 forks source link

Write is_nondesc() to check whether variables are in non-descending order #28

Closed kelly-sovacool closed 2 years ago

kelly-sovacool commented 3 years ago

Similarly to close_enough(), I like to use is_nondesc() paired with the assertthat package to make sure that claims I make in a manuscript are true. If you re-run your code or a pipeline, numbers could change slightly, and you'll want to be sure that your overall conclusions did not change. For example, if I make a claim that "x is less than y and y is less than z", then I also include a hidden code chunk with assert_that(is_nondesc(x, y, z)).

Checklist

(~Strikethrough~ any points that are not applicable.)

sklucas commented 2 years ago

This sounds like a sound method for checking your work.