Commit 1c8bd928 authored by Holger Brandl's avatar Holger Brandl

reverted set_names to original form to support vectors

parent a1ab1632
......@@ -127,7 +127,7 @@ push_left <- function(df, pushColNames){
set_names <- function(df, ...){
#browser()
newnames <- as.character(unlist(list(...)))
colnames(df) <- newnames;
names(df) <- newnames;
return(df)
}
#iris %>% set_names(c("setosa", "hallo")) %>% head
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment