Skip to contents

The label identifies coins throughout the package: in the arguments of get_history(), and in the pickers, tables and plots of the app.

Usage

coin_label(coins)

Arguments

coins

Data frame with name and symbol columns.

Value

A character vector with one label per row of coins.

Examples

crypto:::coin_label(data.frame(name = c("Bitcoin", "Ethereum"), symbol = c("BTC", "ETH")))
#> [1] "Bitcoin (BTC)"  "Ethereum (ETH)"