This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[CmdletBinding()] | |
Param ( | |
# First parameter -AnacondaDirectoryPath, optional, string | |
[Parameter(Mandatory=$False)] | |
[string]$AnacondaDirectoryPath, | |
# Second parameter -HideOutput, optional, switch (bool?) | |
[Parameter(Mandatory=$False)] | |
[switch]$HideOutput | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#################################################################### | |
# Compute n-over-n returns for various n on S&P 500 data. # | |
# By: Chris Conlan # | |
# http://chrisconlan.com/sp500-long-haul-figures-to-keep-in-mind/ # | |
#################################################################### | |
# Point filepath to data | |
sp <- read.csv("~/script_and_data/sp500.csv", stringsAsFactors = FALSE) | |