Hey. I understand that it is better to use setNames in a pipeline of loading data (Like in Tidymodel's getting started)
But currently the function is pretty limited, only accepting character vectors. But it would make a lot of sense to allow formula notation in my opinion.
named_vec <- c(one = 25, two = 35, three = 45) # Current: setNames(named_vec, c("ONE", "TWO", "THREE")) # Desired: setNames(named_vec,~toupper) # Based on this logic: map_chr(names(named_vec),~toupper(.))
would love to hear community's thought and R team's people!