gdfpd.export.DFP.data {GetDFPData} | R Documentation |
Export tibble to an excel or csv (zipped) file
Description
Export information from gdfpd_GetDFPData() to an excel file or csv. In the csv case, all tables are exported as csv files and zipped in a single zip file.
Usage
gdfpd.export.DFP.data(
df.reports,
base.file.name = paste0("GetDFPData_Export_", Sys.Date()),
type.export = "xlsx"
)
Arguments
df.reports |
Tibble with financial information (output of gdfpd.GetDFPData) |
base.file.name |
The basename of excel file (make sure you dont include the file extension) |
type.export |
The extension of the desired format: 'xlsx' (default) or 'csv' |
Value
TRUE, if successfull (invisible)
Examples
# get example data from RData file
my.f <- system.file('extdata/Example_DFP_Report_Petrobras.RData', package = 'GetDFPData')
load(my.f)
## Not run: # dontrun: keep cran check time short
gdfpd.export.DFP.data(df.reports, base.file.name = 'MyExcelFile', format.data = 'wide')
## End(Not run)
[Package GetDFPData version 1.6 Index]