load_data | R Documentation |
Load data from Yahoo.
load_data( ticker, src = "yahoo", from = "2014-01-01", prefix = TRUE, verbose = TRUE )
ticker |
ticker code from Yahoo. |
src |
source name ("yahoo" or "FRED") |
from |
load data 'from' untill today where the format of 'from' is yyyy-mm-dd. |
prefix |
logical (default is TRUE) indicating if ticker name should be included in column name of columns Change and ChangeSinceStart (only applicable for FRED data) |
verbose |
logical (default is TRUE) indicating if loop counter show be shown |
A data.frame
# Load NOVO data since 2021-01-01 data <- load_data(ticker = "NOVO-B.CO", from = "2021-01-01") data # Load Market Yield on U.S. Treasury Securities at 10-Year Constant Maturity data <- load_data(ticker = "DGS10", src = "FRED") data
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.