crypto: Cryptocurrency Prices in USD

Description Usage Format Author(s) Source Examples

Description

Bitcoin, Ethereum, Litecoin and Ripple prices in USD (from their first available date onwards).

Usage

1
data("crypto")

Format

xts object containing cryptocurrency prices in USD of Bitcoin (ticker symbol “BTC-USD”), Ethereum (ticker symbol “ETH-USD”), Litecoin (ticker symbol “LTC-USD”) and Ripple (ticker symbol “XRP-USD”) from their first available date onwards.

Author(s)

Marius Hofert

Source

The data was obtained from Yahoo Finance on 2018-05-29 via the function get_data() from qrmtools.

Examples

1
2
3
4
data("crypto")
str(crypto)
library(xts)
plot.zoo(crypto, main = "Cryptocurrencies in USD", xlab = "Time")

Example output

Anxtsobject on 2010-07-16/2018-05-29 containing:
  Data: num [1:2874, 1:4] 0.0495 0.0858 0.0808 0.0747 0.0792 ...
 - attr(*, "dimnames")=List of 2
  ..$ : NULL
  ..$ : chr [1:4] "BTC" "ETH" "LTC" "XRP"
  Indexed by objects of class: [Date] TZ: UTC
  xts Attributes:  
List of 2
 $ src    : chr "yahoo"
 $ updated: POSIXct[1:1], format: "2018-05-29 14:04:26"
Loading required package: zoo

Attaching package:zooThe following objects are masked frompackage:base:

    as.Date, as.Date.numeric

qrmdata documentation built on Jan. 11, 2020, 9:27 a.m.

Related to crypto in qrmdata...