Open etiennebacher opened 2 years ago
Should this kind of check be generalized to all other functions for consistency? If so, we could make a helper .check_dataframe_names() (we could also suggest using janitor::clean_names()).
.check_dataframe_names()
janitor::clean_names()
https://github.com/easystats/datawizard/blob/89e81930548aecf37e87968f83e5007dd3c37b8f/R/adjust.R#L78-L83
Yes, sounds good! I'd also say that we can both suggest makenames and janitor.
Should this kind of check be generalized to all other functions for consistency? If so, we could make a helper
.check_dataframe_names()
(we could also suggest usingjanitor::clean_names()
).https://github.com/easystats/datawizard/blob/89e81930548aecf37e87968f83e5007dd3c37b8f/R/adjust.R#L78-L83