powered by
A function to get a column from the Yahoo Finance API for symbols using a date range and interval.
get_col(data, col)
A data frame with rows as the index and columns as the symbols.
index
data frame or list. Data that contains an index column and the requested column created using the get_data function.
get_data
string. Column name to get (i.e., "open", "high", "low", "close", "adjclose", "volume").
if (FALSE) { data <- get_data(c("AAPL", "MSFT")) adj <- get_col(data, "adjclose") }
Run the code above in your browser using DataLab