Description Usage Arguments Details Value Note Author(s) References See Also Examples
View source: R/getHoldings.WisdomTree.R
Get the names and weights of holdings of Wisdom Tree ETFs.
1 2 | getHoldings.WisdomTree(Symbols, env = .GlobalEnv,
auto.assign = TRUE)
|
Symbols |
chr Symbols of ETFs (if not supplied, the symbols of all Wisdom Tree ETFs will be used.) |
env |
environment in which to store the holdings data |
auto.assign |
assign data? |
This function is usually called by
getHoldings
, but it can also be called
directly
An object classed as “holdings” will be created
that is a data.frame
with columns for holdings'
weights, names, and symbols. If called with
auto.assign=TRUE
, it will be assigned in
env
with names that are Symbols
appended
with “.h”. Otherwise, the “holdings” will
be returned and not stored.
This does not support Alternative Investment ETFs which, as of this writing (2012-07), are “WDTI” and “RRF”. Wisdom Tree provides these holdings data in the form of Excel spreadsheets and a POST is required to download them.
WisdomTree provides more columns than this function returns, but some of their files have multiple sections with differing numbers of columns. Also, they have different numbers of columns for different ETFs. So, at least for now, only 3 columns are returned with names "Weight", "Name", and "Symbol"
Garrett See
http://www.wisdomtree.com/etfs/
1 2 3 4 5 6 7 | ## Not run:
getHoldings.WisdomTree('EU')
EU.h
getHoldings.WisdomTree('ICN', auto.assign=FALSE)
getHoldings.WisdomTree('DTN', auto.assign=FALSE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.