btc.upper.bound.web: Compute the bitcoin upper bound with web-delivered inputs

View source: R/upper_bounds.R

btc.upper.bound.webR Documentation

Compute the bitcoin upper bound with web-delivered inputs

Description

This function computes the bitcoin upper bound with inputs taken from the web

Usage

btc.upper.bound.web(
  fredkey,
  start.date = "2004-01-01",
  end.date = "2014-12-31",
  lastyear = NULL
)

Arguments

fredkey

is the FRED API KEY (requires registration)

start.date

is the starting date (format " US personal consumption data from the FRED database

end.date

is the ending date (format " US personal consumption data from the FRED database

lastyear

represents the last year to be used for computing the upper bound. If NULL, the last available data for each categories will be used (which may be different across categories).Otherwise a common year equal to lastyear will be used for all categories: in this case be sure the the common year is available for all the 3 categories used to compute the upper bound, otherwise you will get an error.

Details

This function computes the bitcoin upper bound with inputs taken from the web

Value

btc.upper.bound.web is the bitcoin upper bound

Examples

## Not run: 
 #Here insert your valid FRED key
 fredkey ="5565e828f27269b6ed4f3c2552d0cc8f"
 btc.upper.bound.web(fredkey)

## End(Not run)

deanfantazzini/bitcoinFinance documentation built on June 12, 2024, 4:10 p.m.