gitrd.convert.to.wide: Converts a dataframe from gitr_GetITRData to the wide format

Description Usage Arguments Value Examples

View source: R/gitrd_utils.R

Description

Converts a dataframe from gitr_GetITRData to the wide format

Usage

1
gitrd.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/ExampleReport_Petrobras.RData', package = 'GetITRData')
load(my.f)

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

msperlin/GetITRData documentation built on March 23, 2020, 6:43 p.m.