I am cleaning names of a data frame from an imported XLS file that is named Concentration \n(ng/mL):
test_data <- tibble(
subject = 1,
`Concentration \n(ng/mL)` = 10
)
test_data_clean <- janitor::clean_names(test_data)
names(test_data_clean)
[1] "subject" "concentration_ng_m_l"
How do I change the behavior of clean_names so that it outputs the following instead?
concentration_ng_ml
clean_names seems to be interpreting the upper case "L" after a lower case "m". Is there any way to change this rule?