R/str_append.R

Defines functions str_append

Documented in str_append

#' Append a string to another
#'
#' @param x A character vector
#' @param string A character string to append
#' @param sep Optional separator string
#'
#' @return A character vector
#'
#' @export

str_append <- function(x, string, sep = "") {

  stringr::str_replace(x, "$", paste0(sep, string))

}
rscherrer/ggfacet documentation built on May 7, 2021, 11:40 a.m.