Skip to content

Commit

Permalink
make valid names, do not modify NA values
Browse files Browse the repository at this point in the history
  • Loading branch information
ESCRI11 committed Oct 6, 2021
1 parent 63046f8 commit 928601e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: dsOmics
Type: Package
Title: DataSHIELD server site Omic functions
Version: 1.0.7-8
Version: 1.0.7-9
Date: 2021-07-08
Authors@R: c(person("Yannick", "Marcon", , "yannick.marcon@obiba.org", role = "aut"),
person("Xavier", "Esriba-Montagut", , "xavier.escriba@isglobal.org", role = "aut"),
Expand Down
2 changes: 1 addition & 1 deletion R/make_valid_namesDS.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
make_valid_namesDS <- function(x){
x <- eval(parse(text=x), envir = parent.frame())
colnames(x) <- make.names(colnames(x))
x <- x %>% mutate(across(where(is.character), make.names))
x <- x %>% rowwise() %>% mutate(across(where(is.character), ~ if(!is.na(.x)){make.names(.x)}else{NA}))
return(x)
}

0 comments on commit 928601e

Please sign in to comment.