#' Returns logical vector replacing NA by FALSE
#'
#' @param vec A vector of logical values
#' (possible containing NA) or values that can be
#' transformed to logicals
#'
#' @family Helper Functions
is_true = function(vec) {
vec[is.na(vec)] = FALSE
vec = as.logical(vec)
return(vec)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.