unique_not_na <- function(x){
if(all(is.na(x))) return(as.vector(NA, mode = typeof(x)))
unique(stats::na.omit(x)) # Unique, non-NA
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.