R/trimis.R

Defines functions trimis

Documented in trimis

#' Trims extra spaces within strings
#' @param vector character vector of length one or greater
#' @return vector with inner whitespace removed
#' @importFrom stringr str_replace_all
#' @export

trimis <-
        function(vector) {
                return(stringr::str_replace_all(vector, "[ ]{2,}", " "))
        }
patelm9/cartographR2 documentation built on Dec. 24, 2019, 3:03 p.m.