☰
Debian Codegraph
@
1.11.1+dfsg-1
/
/
R
/
strrep.R
☽
☼
R/strrep.R
code
plain
raw
GPL-3
2014-2017 Kirill Müller, Hadley Wickham, RStudio
debian/copyright
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
}