cleanup tests and build
Gitea Organization/civilyticsR/pipeline/head There was a failure building this commit

This commit is contained in:
Jared Knowles
2022-10-16 19:30:05 -04:00
parent a02e72e618
commit 91dad76526
12 changed files with 38 additions and 19 deletions
+1 -6
View File
@@ -37,8 +37,6 @@ countCleanr <- function(x){
#'
#' @return the names of columns in the dataframe with one or more entries equal to "."
#' @export
#'
#' @examples
findDots <- function(data){
return(names(data)[lapply(data, countDots) > 0])
@@ -49,9 +47,8 @@ findDots <- function(data){
#' @param x a character vector
#'
#' @return
#' An integer counting the number of "." occurences in a vector
#' @export
#'
#' @examples
countDots <- function(x){
len <- length(x[x == "." & !is.na(x)])
totlen <- length(x)
@@ -65,8 +62,6 @@ countDots <- function(x){
#'
#' @return a vector the same length as the input vector with clean names
#' @export
#'
#' @examples
dbSafeNames <- function(names) {
names = gsub('[^a-z0-9]+','_',tolower(names))
names = make.names(names, unique = TRUE, allow_ = TRUE)