Code Monkey home page Code Monkey logo

summerschool's Introduction

Summer School Lausanne 2018

All the scripts of the UseR sessions are available here.

Required Software

Please run the following script in your R session to install all the required packages. Make sure Rtools (Windows) or gfortan (Mac) has been installed previously.

Start with the package containing datasets. If there is a query to install from source, answer "y" (yes).

if (!require("sp")) install.packages("sp")
if (!require("xts")) install.packages("xts")
if (!require("CASdatasets")) install.packages("CASdatasets", repos = "http://cas.uqam.ca/pub/R/", type="source")
require("CASdatasets")

If the installation succeeded, the following lines should load a dataset and show the first six lines.

data("freMTPLfreq")
head(freMTPLfreq)
##   PolicyID ClaimNb Exposure Power CarAge DriverAge
## 1        1       0     0.09     g      0        46
## 2        2       0     0.84     g      0        46
## 3        3       0     0.52     f      2        38
## 4        4       0     0.45     f      2        38
## 5        5       0     0.15     g      0        41
## 6        6       0     0.75     g      0        41
##                                Brand     Gas Region Density
## 1 Japanese (except Nissan) or Korean  Diesel    R72      76
## 2 Japanese (except Nissan) or Korean  Diesel    R72      76
## 3 Japanese (except Nissan) or Korean Regular    R31    3003
## 4 Japanese (except Nissan) or Korean Regular    R31    3003
## 5 Japanese (except Nissan) or Korean  Diesel    R52      60
## 6 Japanese (except Nissan) or Korean  Diesel    R52      60

Then, we can install and load all the other packages.

if (!require("Rcpp")) install.packages("Rcpp")
if (!require("zoo")) install.packages("zoo")
if (!require("caret")) install.packages("caret")
if (!require("mgcv")) install.packages("mgcv")
if (!require("plyr")) install.packages("plyr")
if (!require("gridExtra")) install.packages("gridExtra")
if (!require("visreg")) install.packages("visreg")
if (!require("MASS")) install.packages("MASS")
if (!require("plotrix")) install.packages("plotrix")
if (!require("lme4")) install.packages("lme4")
if (!require("glmnet")) install.packages("glmnet")
if (!require("parallel")) install.packages("parallel")
if (!require("devtools")) install.packages("devtools")
if (!require("rpart")) install.packages("rpart")
if (!require("rpart.plot")) install.packages("rpart.plot")
if (!require("randomForest")) install.packages("randomForest")
if (!require("reshape2")) install.packages("reshape2")

require("Rcpp")
require("mgcv")
require("caret")
require("gridExtra")
require("plyr")
require("visreg")
require("MASS")
require("plotrix")
require("lme4")
require("glmnet")
require("parallel")
require("devtools")
require("rpart")
require("rpart.plot")
require("reshape2")

install_github("gbm-developers/gbm3")
install_github("fpechon/rfCountData")
require("gbm3")
require("rfCountData")

summerschool's People

Contributors

fpechon avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.