View source: R/gtdd_read_TD_files.R
read.TD.files | R Documentation |
Reads files downloaded by download.TD.data
read.TD.files(
dl.folder = "TD Files",
cols.to.import = c(1, 2, 4),
col.names = c("ref.date", "yield.bid", "price.bid")
)
dl.folder |
Folder with excel files from tesouro direto |
cols.to.import |
Columns (numeric) to import from excel files (open and check the columns of the excel file from tesouro direto for details) |
col.names |
Names of columns in final data.frame (same size as cols.to.import) |
A dataframe with the data
# Downloads data from tesouro direto (only 1 file for simplicity)
dl.folder ='TD Files'
## Not run:
download.TD.data(dl.folder = dl.folder, n.dl = 1)
my.df <- read.TD.files(dl.folder = dl.folder)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.