Created
June 8, 2017 22:23
-
-
Save revodavid/e7894c02415794d68a18bb3adda7f323 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| library(doAzureParallel) | |
| # generate a credentials json file "cluster", then... | |
| registerDoAzureParallel(cluster) | |
| # Run 5 million option pricing simulations | |
| closingPrices <- foreach(i = 1:50, .combine='c') %dopar% { | |
| replicate(100000, getClosingPrice()) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment