Learn R Programming

GetITRData (version 0.7)

gitrd.export.ITR.data: Export tibble to an excel file

Description

Export tibble to an excel file

Usage

gitrd.export.ITR.data(data.in, base.file.name = paste0("GetITRData_Export_",
  Sys.Date()), type.export = "xlsx", format.data = "wide")

Arguments

data.in

Tibble with financial information (output of gitrd.GetITRData)

base.file.name

The basename of excel file (don't include extension)

type.export

The extension of the desired format (only 'xlsx' implemented so far)

format.data

The format of output. 'wide' (default) for a wide table and 'long' for a long table

Value

nothing

Examples

Run this code
# NOT RUN {
# get example data from RData file
my.f <- system.file('extdata/ExampleReport_Petrobras.RData', package = 'GetITRData')
load(my.f)

# }
# NOT RUN {
 # dontrun: keep cran check time short
gitrd.export.ITR.data(df.reports, base.file.name = 'MyExcelFile', format.data = 'wide')
# }

Run the code above in your browser using DataLab