R/util.R

#' Trim whitespace
#'
#' @param x string or vector of strings
#' @return a string or vector of strings, with whitespace removed.
#' @export

trim_whitespace <- function (x) gsub("^\\s+|\\s+$", "", x)
almartin82/mlbids documentation built on May 10, 2019, 9:54 a.m.