Learn R Programming

BatchGetSymbols (version 2.6.4)

reshape.wide: Transforms a dataframe in the long format to a list of dataframes in the wide format

Description

Transforms a dataframe in the long format to a list of dataframes in the wide format

Usage

reshape.wide(df.tickers)

Arguments

df.tickers

Dataframe in the long format

Value

A list with dataframes in the wide format

Examples

Run this code
# NOT RUN {
my.f <- system.file( 'extdata/ExampleData.rds', package = 'BatchGetSymbols' )
df.tickers <- readRDS(my.f)
l.wide <- reshape.wide(df.tickers)
l.wide
# }

Run the code above in your browser using DataLab