GenerateReport: Generate the report

Description Usage Arguments Details Value Examples

View source: R/GenerateReport.R

Description

GenerateReport generates the markdown report in one command

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
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 NULL

model

type of model - linReg for linear regression binClass for binary classification and multiClass for multiclass classification

title

Title of the generated report

output_format

output report format. 'html_documennt' for html file or pdf_document for pdf file output. OR c("html_document", "pdf_document") for both.

output_dir

Directory where the output files needs to be stored.

normality_test_method

method for normality test for a variable. Values can be shapiro for Shapiro-Wilk test or 'anderson' for 'Anderson-Darling' test of normality or ks for 'Kolmogorov-Smirnov'

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

1
2
3
4
5
6
7
8
# 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

analyzer documentation built on July 1, 2020, 10:02 p.m.