R/strrep.R

if (getRversion() < "3.3.0") {
  strrep <- function(x, times) {
    map_chr(
      times,
      function(n) paste(rep(x, n), collapse = "")
    )
  }
}
krlmlr/tibble documentation built on Jan. 15, 2020, 7:56 a.m.