View source: R/yf_data_convert_to_wide.R
yf_convert_to_wide | R Documentation |
Transforms a long (stacked) data frame into a list of wide data frames
yf_convert_to_wide(df_in)
df_in |
dataframe in the long format (probably the output of yf_get()) |
A list with dataframes in the wide format (each element is a different column)
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.