Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bioinfo
datautils
Commits
a1ab1632
Commit
a1ab1632
authored
Apr 29, 2015
by
Holger Brandl
Browse files
better support for matrices in set_names
parent
cf4fa28c
Changes
1
Hide whitespace changes
Inline
Side-by-side
R/core_commons.R
View file @
a1ab1632
...
...
@@ -127,7 +127,7 @@ push_left <- function(df, pushColNames){
set_names
<-
function
(
df
,
...
){
#browser()
newnames
<-
as.character
(
unlist
(
list
(
...
)))
names
(
df
)
<-
newnames
;
col
names
(
df
)
<-
newnames
;
return
(
df
)
}
#iris %>% set_names(c("setosa", "hallo")) %>% head
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment