Skip to content

Instantly share code, notes, and snippets.

View chrisconlan's full-sized avatar

Chris Conlan chrisconlan

View GitHub Profile
@chrisconlan
chrisconlan / Set-AnacondaEnv.ps1
Created June 16, 2018 23:17
Commentary and suggestions for Set-AnacondaEnv.ps1 by pldmgg https://gist.github.com/pldmgg/c84e802bcecd6e4c962f65be5b5d316d
[CmdletBinding()]
Param (
# First parameter -AnacondaDirectoryPath, optional, string
[Parameter(Mandatory=$False)]
[string]$AnacondaDirectoryPath,
# Second parameter -HideOutput, optional, switch (bool?)
[Parameter(Mandatory=$False)]
[switch]$HideOutput
)
####################################################################
# 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)