#' Describe data
#'
#' @param data a data frame
#'
#' @return a skimr object
#'
#' @export
#'
#' @examples
#' \dontrun{
#' nice_data <- data.frame(c1 = c(1, NA), c2 = c(NA, NA))
#' nice_data %>%
#' describe_data()
#' }
describe_data <- function(data) {
check_require("skimr")
data %>%
skimr::skim()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.