yf_convert_to_wide: Transforms a long (stacked) data frame into a list of wide...

View source: R/yf_data_convert_to_wide.R

yf_convert_to_wideR Documentation

Transforms a long (stacked) data frame into a list of wide data frames

Description

Transforms a long (stacked) data frame into a list of wide data frames

Usage

yf_convert_to_wide(df_in)

Arguments

df_in

dataframe in the long format (probably the output of yf_get())

Value

A list with dataframes in the wide format (each element is a different column)

Examples


my_f <- system.file("extdata/example_data_yfR.rds", package = "yfR")
df_tickers <- readRDS(my_f)

print(df_tickers)

l_wide <- yf_convert_to_wide(df_tickers)
l_wide

msperlin/yf documentation built on July 2, 2024, 5:12 a.m.