getHoldings.WisdomTree: Get the holdings of Wisdom Tree ETFs

Description Usage Arguments Details Value Note Author(s) References See Also Examples

View source: R/getHoldings.WisdomTree.R

Description

Get the names and weights of holdings of Wisdom Tree ETFs.

Usage

1
2
  getHoldings.WisdomTree(Symbols, env = .GlobalEnv,
    auto.assign = TRUE)

Arguments

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?

Details

This function is usually called by getHoldings, but it can also be called directly

Value

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.

Note

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"

Author(s)

Garrett See

References

http://www.wisdomtree.com/etfs/

See Also

getHoldings

Examples

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)

qmao documentation built on May 2, 2019, 4:54 p.m.