powered by
Transforms a long (stacked) data frame into a list of wide data frames
yf_convert_to_wide(df_in)
A list with dataframes in the wide format (each element is a different column)
dataframe in the long format (probably the output of yf_get())
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
Run the code above in your browser using DataLab