gdfpd.convert.to.wide: Converts a dataframe from gdfpd_GetDFPData to the wide format

Description Usage Arguments Value Examples

View source: R/gdfpd_utils.R

Description

Converts a dataframe from gdfpd_GetDFPData to the wide format

Usage

1
gdfpd.convert.to.wide(data.in, data.in.cols = "original")

Arguments

data.in

Data frame with financial information

data.in.cols

Which data to go in rows values ('original' or 'inflation adjusted')

Value

A dataframe in the wide format

Examples

1
2
3
4
5
6
# get example data from RData file
my.f <- system.file('extdata/Example_DFP_Report_Petrobras.RData', package = 'GetDFPData')
load(my.f)

df.assets <- df.reports$fr.assets[[1]]
df.assets.wide <- gdfpd.convert.to.wide(df.assets)

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