fishR-Core-Team / FSA

FSA (Fisheries Stock Assessment) package provides R functions to conduct typical introductory fisheries analyses.
https://fishr-core-team.github.io/FSA/
GNU General Public License v2.0
66 stars 22 forks source link

Labels in dunnTest() #40

Closed droglenc closed 6 years ago

droglenc commented 6 years ago

Check to make sure that the labels on the results for dunnTest() are correct in a situation where not all levels of the factor variable exist in the data (as would happen if one used filter() instead of filterD()). See the relative weight example from Jeremy Risler as an example.

droglenc commented 6 years ago

This issue appears to be related to an outdated version of dunn.test. Nevertheless, I added a testthat test to detect if this error occurs again.