It would be great if set_names could support tripledots for the new names. Like
set_names <- function(df, ...){
newnames <- as.character(unlist(list(...)))
names(df) <- newnames;
return(df)
}
This would allow even more streamlined coding without wrapping the names into another vector:
data %>% set_names("foo", "bar")
It would be great if set_names could support tripledots for the new names. Like
This would allow even more streamlined coding without wrapping the names into another vector: