etf_data | R Documentation |
OHLC
time series data for a portfolio of
symbols. All the prices are already adjusted.The etfenv environment includes daily OHLC
time series data for a
portfolio of symbols, and reference data:
a vector
of strings
with the portfolio symbols.
a single xts
time series containing daily closing
prices for all the symbolv
.
a single xts
time series containing daily returns
for all the symbolv
.
"VTI", "VEU", etc., containing daily
OHLC
prices for the symbolv
.
data(etf_data) # not required - data is lazy load
Each xts
time series contains the following columns with
adjusted prices and trading volume:
Open prices
High prices
Low prices
Close prices
daily trading volume
# Loading is not not needed - data is lazy load
# data(etf_data)
# Get first six rows of OHLC prices
head(etfenv$VTI)
chart_Series(x=etfenv$VTI["2009-11"])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.