Closed jtr13 closed 4 years ago
Thank you so much @jtr13 for pointing this out! That code traces way back and i guess i never carefully vetted it once i better understood how factors work. I'll get to work on a patch ASAP—there are several other places, including examples, where the error has metastasized.
Sure, thanks again for this awesome package.
The issue is resolved in commit 99ff7b4023e217321c89c1599269e1c19543f85a, and the website in particular is updated accordingly. Because the exported code has not been changed, and to avoid overburdening the maintainers, i will wait until the next code patch or feature upgrade to resubmit to CRAN. : )
Thank you for a great package.
I'd like to point out that the line
levels(vaccinations$response) <- rev(levels(vaccinations$response))
in the package vignette erroneously relabels the factor levels:Created on 2020-10-14 by the reprex package (v0.3.0)
In order to keep the levels as they are and only change their order, it should be:
Created on 2020-10-14 by the reprex package (v0.3.0)
(Or:
vaccinations$response <- forcats::fct_rev(vaccinations$response)
)