R/str_quote.R

#' Surround strings with quotation marks
#'
#' @param x character vector
#' @param ch character representing a quotation mark (default is double quote)
#'
#' @examples
#' str_quote(LETTERS)
#'
#' @export
str_quote <- function (x, ch = '"') {
  str_c(ch, x, ch)
}
BAAQMD/strtools documentation built on Nov. 23, 2023, 5:52 a.m.