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
a637ca8d
Commit
a637ca8d
authored
Jul 01, 2015
by
Holger Brandl
Browse files
fixed dplyr conversion
parent
8e2099dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
R/core_commons.R
View file @
a637ca8d
...
@@ -107,6 +107,9 @@ rownames2column <- function(df, colname){
...
@@ -107,6 +107,9 @@ rownames2column <- function(df, colname){
column2rownames
<-
function
(
df
,
colname
){
column2rownames
<-
function
(
df
,
colname
){
#browser()
#browser()
## force into df to avoid dplyr problems
df
<-
as.df
(
df
)
rownames
(
df
)
<-
ac
(
df
[,
colname
])
rownames
(
df
)
<-
ac
(
df
[,
colname
])
df
[
colname
]
<-
NULL
df
[
colname
]
<-
NULL
return
(
df
)
return
(
df
)
...
...
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