Function to load multiple csv files into the selected environment as xts objects. Object names are the file names, minus the '.csv' extension.
1 2 | load_files(dir, fnames, index.col = "date", daterange = NULL,
envir = globalenv(), delim = ",")
|
dir |
The directory in which the required files are stored (string) |
index.col |
Column name to be referenced for ordering xts object (string). Must be coercible to POSIXct. |
daterange |
The date range of resulting xts to be loaded (string). |
envir |
The environment in which to load the objects. |
fname |
name of file to be loaded (string) |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.