Nothing
# TODO: optimize this function
mean_safe <- function(x) {
if (length(x) == 0) return(NA)
mean(x, na.rm = TRUE)
}
sd_safe <- function(x) {
if (length(x) <= 1) return(NA)
sd(x, na.rm = TRUE)
}
print_vector <- function(v) {
print(paste('Vector of length', length(v)))
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.