Learn R Programming

GetITRData (version 0.7)

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

Description

Converts a dataframe from gitr_GetITRData to the wide format

Usage

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

Run this code
# NOT RUN {
# 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)
# }

Run the code above in your browser using DataLab