map_mold <- function(.x, .f, .mold, ...) {
out <- vapply(.x, rlang::as_function(.f), .mold, ..., USE.NAMES = FALSE)
names(out) <- names(.x)
out
}
map_lgl <- function(.x, .f, ...) {
map_mold(.x, .f, logical(1), ...)
}
map_int <- function(.x, .f, ...) {
map_mold(.x, .f, integer(1), ...)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.