-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackages.R
42 lines (35 loc) · 1.61 KB
/
packages.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# File: packages.R
# Authors: William, John & George
# Last Updated: 12/04/2021
#
#
# Load Packages-----------------------------------------------------------------
# Using the "pacman" package for managing add-on packages. It will install
# packages, if needed, and then load the packages.
# Install the package manager if not already installed.
if(!("pacman" %in% installed.packages())) install.packages("pacman")
## Make a list of add-on packages for the project
# e1071: offers an interface to the C++ implementation of SVM
# dplyr: data manipulation
# ggplot2: Data visualizations
# RColorBrewer: provides color palettes
# patchwork: helps add ggplot2 plots together to compose multiplot layouts
# knitr: dynamic report generation
# kableExtra: used with knitr::kable() to generate advanced tables
# scales: provides the percent function for adding the percent label
# mice: missing data imputation
# caret: contains functions to streamline the model building process
# cvAUC: calculates cross-validated area under the ROC curve (AUC) estimates.
# verification:
# pROC: for creating ROC curves
# naniar: missing data visualization
# UpSetR:
# earth: for fitting Multivariate Adaptive Splines (MARS) models
# depends on: Formula, plotmo, plotrix, TeachingDemos
packages <- c("tibble", "dplyr", "ggplot2", "RColorBrewer","patchwork",
"knitr", "kableExtra", "scales", "mice", "cvAUC", "verification",
"caret","e1071", "randomForest", "earth","TeachingDemos", "pROC",
"caretEnsemble", "naniar", "UpSetR", "doParallel"
)
pacman::p_load(char = packages, install = TRUE)
rm(packages)