- Day 1 - Getting started
- Day 2 - Functions & Spark
- Day 3 - Tidyverse
- Day 4 - Plotly
- Day 5 - Shiny Introduction
- Day 6 - Reactivity
- Day 7 - Modules
- Day 8 - Shiny Project
January, 2018
Right-click > Git Clone > https://github.com/gbisschoff/grad-training.git
install.packages("package name")
install.packages("tidyverse")
??function_name
. E.g. ??tidyverse
-There are also many 'cheatsheets' available that gives you the need-to-know information on some of the most popular packages. Some can be found under Help > CheatsheetsUse the Base-r cheatsheet to generate loan data. Each account has:
PD<-dlnorm(seq(0.05,3,by = 0.05), meanlog = 0, sdlog = 1, log = FALSE)/6
loop over \(t \subset (1,n)\) and create vectors for:
a flag to see if the person made the payment as: \(made\_payment_t<-I(1-PD_t \ge U)\)
actual outstanding balance as:
\(balance\_actual_0=start\_balance\times(1+r) - pmt\times made\_payment_0\) \(balance\_actual_t=balance\_actual_{t-1}\times(1+r) - pmt\times made\_payment_t\)
Create a dataset containing the columns:
See Data > transition_data.csv for example output.