Skip to content

Instantly share code, notes, and snippets.

View RobinReborn's full-sized avatar
🙂
Keeping up

Robin Gane-McCalla RobinReborn

🙂
Keeping up
View GitHub Profile
@RobinReborn
RobinReborn / app.R
Created April 30, 2017 15:29
Patterns in Stock Indicies over Time
library(shiny)
library(dplyr)
library(ggplot2)
formatData = function(indexTable){
indexTable$Date = as.Date(indexTable$Date,"%Y-%m-%d")
#we add the day of the week as a number to make sorting easier
#perhaps we can reformulate later
indexTable$Daily = strftime(indexTable$Date, '%w---%A')
indexTable$Monthly = strftime(indexTable$Date, '%m')