## A curated list of packages
## @edouard_lgp
##This should detect and install missing packages before loading them –
packages <- c(
##################################################################
### Packages for Premodeling Stage
## Data Manipulation
#"viridis",
#"lubridate",
"date","gdata","zoo", ## playing with date
"dplyr", "data.table", "doBy","tidyr", ## Data manipulation\
"DT",
"reshape2", # package to easily melt data to long form
"stringr","stringdist","stringi", ## string manipulation
"xlsx",
##### Packages for Visualisation
#"graphics",
"ggplot2", ## advanced graphics
#"ggseas", ## seasonal adjustemnt with GGplot2
#"ggrepel", ## getting nice labels in ggplot2
#"ggthemes", ## Customised themes for ggplot2: excel, stata, economist, tufte, wall street journal...
"grid", "gridExtra", # Assembel graphcis together
#"vcd", # Visualisation of categorical data
"RColorBrewer", # a package offering color palette from
"scales", #Scale Functions for Visualization
#"extrafont", ##" load additional font
#"hexbin", ## Hexagrid viz
"corrplot", # Visualiation of correlation Matrix
#"igraph", #network analysis and visualisation
##################################################################
### Packages for Modeling Stage
# "Hmisc", # generate a detailled describtion of a given dataset
# "gbm", # Generalized Boosted Regression Models
# "car", ## ## Companion to Applied Regression
# "rminer", "CORElearn", # ordinal Regression
# "caret", # Gradient Boosting & AdaBoost
# "bigRR", ## Classification
# "e1071", #SVM (Support Vector Machine)
# "knncat", # KNN (K- Nearest Neighbors)
# "randomForest", # randomForest
# "stats", # Dimensionality Reduction Algorithms princomp
## Time Series
# "forecast", "ltsa",
# survival analysis
# "survival", "BaSTA",
# "pastecs", #Analysis of Space-Time Ecological Series
# Lasso and Elastic-Net Regularized Generalized Linear Models
# "glmnet",
# "lme4", # Linear Mixed-Effects Models
# "MASS",
# "VGAM", #Vector Generalized Linear and Additive Models
# "aod", ## Analysis of Overdispersed Data
## Cluster analysis
# "cluster", "cba", "Rankcluster",
##################################################################
### Packages for Post Modeling Stage
# "lmtest", # Testing Linear Regression Models
# "gvlma", #Global Validation of Linear Models Assumptions
# "lsmeans", "comparison", #general Model Validation
# "regtest", "ACD", #Regression validation
# "binomTools","Daim", ## classification validation
# "clusteval","sigclust", ## Clustering valisation
# "pROC","timeROC", # ROC Analysis
## Recursive Partitioning and Regression Trees
# "rpart", "rpart.plot",
##################################################################
### Packages for Survey data management
# "sampling", ## Survey Sampling
"survey", ##Analysis of Complex Survey Samples
##################################################################
### Other Packages
# "psych", ## Procedures for Psychological, Psychometric, and Personality Research
# "Benchmarking", #Benchmark and Frontier Analysis Using Data Envelopmenbt Aanalysis
# "pwr", # Power Analysis allows to determine the sample size required to detect an effect of a given size with a given degree of confidence.
## text mining
# "tm", "twitteR" ,
# "wordcloud", #Word Clouds
# "LDAvis", # Interactive Visualization of Topic Models
# "AER", # Applied economtrics with R
"formatR", # used to format the code
#"parallel", ## Improve performance
"Rcpp", ## used to compile some pacjckages
#"foreign", ## read data from SPSS, SAS or Stata
# "sqldf", "RODBC",
#"RMongo",
# "RSQLite", ## Direct connection with databases
#"rJava", "XLConnect", ## Read and write excel files
"readxl", ## Read Excel files
"XML", "xml2", ## Manipulation of xml
"devtools", # package used to load packages hosted in github --
#"RGtk2",
## used to generate reports
"knitr", "pander", "xtable", "rmarkdown", "koRpus", "tables"
)
## identify packages not installed yet
if (length(setdiff(packages, rownames(installed.packages()))) > 0) {
install.packages(setdiff(packages, rownames(installed.packages())))
}
rm(packages)
library("knitr")
library("xlsx")
library("koRpus")
library("tables")
library("rmarkdown")
library("survey")
library("DT")
#library("viridis")
library("stringr")
#library("stringi")
#library("car")
library("plyr")
library("ggplot2") ## The grammar of graphics!
#library("extrafont") ## Additional fonts
library("ggthemes") ## Additional themes for gplot2
#library("zoo") ## Manage reformatting of date
library("reshape2") ## Restructure data between wide and long format before plotting them - melt and cast
library("RColorBrewer") ## Color palette
#library("classInt") ## Classififcation
#library("hexbin") ## Hexa binning
#library("lubridate")
#library("date")
library("gdata")
#library("gridExtra")
library("scales")
library("readxl")
library("plyr")
library("corrplot")
#library("graphics")
#library("vcd")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.