name 0.1.0
-
clean_names()is a new function that renames all columns of a data frame to clean snake_case names, handling camelCase, spaces, dots, dashes, and other special characters. Setunique = TRUEto disambiguate duplicate names after cleaning by appending_1,_2, etc. -
str_clean_names()is a new function that converts a character vector to clean snake_case names with the same transformations asclean_names(). -
compare_names()now errors informatively whenxandyhave different numbers of names, rather than silently recycling and producing incorrect output. -
rem_phrase()now removes all occurrences ofphrasein each string (previously only the first occurrence was removed). -
rem_phrase(),repl_phrase(),rem_pref(), andrepl_pref()now treat their pattern arguments as literal strings rather than regular expressions, making them safe to use with column names that contain regex metacharacters (e.g.,.). -
relocate_with()now works correctly when.colsselects a subset of columns (previously errored with a missing value). -
sort_suff()now correctly handles input that contains a mix of underscore and non-underscore strings (previously produced duplicated and missing elements due to a vector recycling bug).
name 0.0.2
CRAN release: 2025-09-03
- Added a
NEWS.mdfile to track changes to the package. - Updates readme, logo, and maintainer email.
- Fixes NA in
sort_suff().
