loadMLFI = function(){
require(Quandl)
source("C:/Users/blloyd.HF/Documents/GitHub/R-risk-mgmt/Functions/Quandl.key.R")
Quandl.api_key(quandl.key)
path = file.path('C:/Users/blloyd.HF/Documents/GitHub/R-risk-mgmt/', 'QuandlData', 'dataset_mlfi.csv')
#path = file.path('QuandlData', 'dataset_mlfi.csv')
read.table(file = path, header = T, sep = ",") -> mlfi.codes
names = mlfi.codes$dataset_code
mlfi.codes = paste(mlfi.codes$database_code, mlfi.codes$dataset_code, sep = '/')
return(Quandl(code = mlfi.codes, type="xts"))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.