gdfpd.convert.to.wide {GetDFPData} | R Documentation |
Converts a dataframe from gdfpd_GetDFPData to the wide format
Description
Converts a dataframe from gdfpd_GetDFPData to the wide format
Usage
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
# 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)
[Package GetDFPData version 1.6 Index]