allisonhorst / palmerpenguins

A great intro dataset for data exploration & visualization (alternative to iris).
https://allisonhorst.github.io/palmerpenguins/
Creative Commons Zero v1.0 Universal
898 stars 210 forks source link

Make sex variable values sentence case #79

Closed davidhodge931 closed 3 years ago

davidhodge931 commented 3 years ago

While perhaps pedantic, I think this is more tidy

allisonhorst commented 3 years ago

Hi @davidhodge931, thanks for the feedback. Since this version of the data has been on CRAN for almost a year, this could be a change that would break existing code for some, and since this is a lightweight data package, we’d like to err on the side of caution making changes to the data itself. We hope this gives instructors a good use case for teaching functions like stringr::str_to_sentence :slightly_smiling_face: https://stringr.tidyverse.org/reference/case.html

davidhodge931 commented 3 years ago

Thanks @allisonhorst

Appreciate the dataset :)

I'm using it in examples for the visualisation package I'm developing https://statisticsnz.github.io/simplevis/articles/simplevis.html