gdfpd.export.DFP.data: Export tibble to an excel or csv (zipped) file

Description Usage Arguments Value Examples

View source: R/gdfpd_export_DFP_Data.R

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

1
2
3
4
5
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

1
2
3
4
5
6
7
8
# 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)

msperlin/GetDFPData documentation built on April 6, 2021, 4:52 a.m.