getHoldings.vaneck: Get the holdings of a Van Eck ETF

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

View source: R/getHoldings.vaneck.R

Description

Download the names and weights of holdings of Van Eck ETFs (Market Vector ETFs)

Usage

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

Arguments

Symbols

character vector of Van Eck ETF ticker symbols. Presently, if Symbols is missing, all the Market Vectors Symbols found using read.masterDATA will be used. However, in the future this may change to require that Symbols is not missing

env

environment in which to store holdings data

auto.assign

TRUE/FALSE. If TRUE, the holdings data will be stored in an object that has a name that is he Symbol appended with “.h”

Value

either the names of the objects that contain the holdings if called with auto.assign=TRUE, or a list of the holdings data. The returned data will be in objects classed as holdings that are data.frames with Weights (0-100) in the first column, and the Names of the stocks in the second column. The rownames are the the ticker symbols.

Author(s)

Garrett See

References

http://www.vaneck.com/

See Also

getHoldings, getHoldings.SPDR, getHoldings.iShares, getHoldings.powershares

Examples

1
2
3
4
## Not run: 
getHoldings.vaneck("GDX")

## End(Not run)

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