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
59c4afe3
Commit
59c4afe3
authored
Jan 09, 2018
by
Holger Brandl
Browse files
also remove + when in pretty_names
parent
b0267447
Changes
1
Show whitespace changes
Inline
Side-by-side
R/core_commons.R
View file @
59c4afe3
...
@@ -228,7 +228,7 @@ set_names <- function(df, ...){
...
@@ -228,7 +228,7 @@ set_names <- function(df, ...){
pretty_names
=
function
(
some_names
,
make_unique
=
FALSE
){
pretty_names
=
function
(
some_names
,
make_unique
=
FALSE
){
new_names
=
some_names
%>%
new_names
=
some_names
%>%
str_replace_all
(
"[#=.,()/*: -]+"
,
"_"
)
%>%
str_replace_all
(
"[#
+
=.,()/*: -]+"
,
"_"
)
%>%
str_replace
(
fixed
(
"["
),
""
)
%>%
str_replace
(
fixed
(
"["
),
""
)
%>%
str_replace
(
fixed
(
"]"
),
""
)
%>%
str_replace
(
fixed
(
"]"
),
""
)
%>%
## remove leading and tailing underscores
## remove leading and tailing underscores
...
...
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