GenerateReport {analyzer} | R Documentation |
Generate the report
Description
GenerateReport
generates the markdown report in one command
Usage
GenerateReport(
dtpath,
catVars,
yvar = NULL,
model = "linReg",
title = "Report",
output_format = "html_document",
output_dir = tempdir(),
normality_test_method = "ks",
interactive.plots = FALSE,
include.vars = NULL
)
Arguments
dtpath |
dataset path as a string |
catVars |
vector of categorical variables names |
yvar |
y variable name if present else |
model |
type of model - |
title |
Title of the generated report |
output_format |
output report format. |
output_dir |
Directory where the output files needs to be stored. |
normality_test_method |
method for normality test for a variable.
Values can be |
interactive.plots |
for interactive variable exploration |
include.vars |
include only these variables from the full data |
Details
This function creates a rmarkdown report which can be converted to html or pdf format file.
Value
creates a rmarkdown and html/pdf file. Returns the output directory
on successful run and FALSE
in case of error
Examples
# Assigning the temporary folder using tempdir(). replace with required directory
GenerateReport(dtpath = mtcars,
catVars = c("cyl", "vs", "am", "gear"),
yvar = "vs", model = "binClass",
output_format = NULL,
title = "Report",
output_dir = tempdir(), # pass the output directory
interactive.plots = FALSE) # set TRUE for interactive