`%||%` <- function(l, r) {
if (!is.null(l)) l else r
}
map_chr <- function(.x, .f, ...) {
vapply(.x, .f, character(1), ...)
}
map_lgl <- function(.x, .f, ...) {
vapply(.x, .f, logical(1), ...)
}
map_int <- function(.x, .f, ...) {
vapply(.x, .f, integer(1), ...)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.