#' Replaces empty elements in vector with NA
#'
#' @param x A vector.
vec_empty_NA <- function(x){
gsub("^$",
"NA",
x)}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.