Debian Codegraph @

R/strrep.R

raw
1 strrep <- NULL
2 strrep_compat <- function(x, times) {
3 map_chr(
4 times,
5 function(n) {
6 if (is.na(n)) {
7 NA_character_
8 } else {
9 paste(rep(x, n), collapse = "")
10 }
11 }
12 )
13 }