-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
40 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#' @title Rename column names and character variables | ||
#' | ||
#' @description Passes the column names and the character variables through \code{make.names}, this creates | ||
#' names without any special characters so there are no problems for accessing any columns or any category | ||
#' when using the DataSHIELD parser. | ||
#' | ||
#' @param x \code{data.frame} Entry table to modify | ||
#' | ||
#' @return \code{data.frame} with the column names and character columns updated | ||
#' @export | ||
#' | ||
#' @examples | ||
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)) | ||
return(x) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,4 +32,4 @@ AssignMethods: | |
RNAseqPreprocDS, | ||
PRSDS, | ||
PRSDS_aux, | ||
make_valid_column_namesDS | ||
make_valid_namesDS |
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.