#' @title descriptive_html
#' @description Genera un informe estadistico que incorpora estadisticos descritivos
#' @param base Nombre de base de datos a analizar.
#' @param group_var Variable por la cual se prentende agrupar
#' @param cont_vars Nombre variables continuas
#' @param cat_vars Nombres variables categoricas
#' @param name Nombre archivo a generar, este argumento debe ser entregado en formato:
#' "nombre.html"
#' @param direc Directorio donde se almacena el archivo a generar.
#' @export
#' @import dplyr
#' @import gridExtra
#' @import ggplot2
#' @import stringr
#' @import stats
#' @import kableExtra
#' @import data.table
#' @import plotly
#' @import moments
descriptive_html <-function(base,group_var,cont_vars,cat_vars,name,direc){
file_name <- system.file('rmd','describe_numerical.Rmd',package = "DSutilsR")
tryCatch({rmarkdown::render(input=file_name,output_file=name,output_dir=direc)},
error = function(cond){print("error")})
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.