getHoldings.FirstTrust: Get the holdings of First Trust ETFs

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

View source: R/getHoldings.FirstTrust.R

Description

Get the names and weights of holdings of First Trust ETFs.

Usage

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

Arguments

Symbols

chr Symbols of ETFs (if not supplied, the symbols of all First Trust 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 and names. 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.

Author(s)

Garrett See

References

http://www.ftportfolios.com/index.aspx

See Also

getHoldings

Examples

1
2
3
4
5
## Not run: 
getHoldings.FirstTrust('FDN')
FDN.h

## End(Not run)

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