hscardused: hscardused

Description Usage Arguments Value Examples

View source: R/hscardused.R

Description

This function returns how many times the cards are used in each decks that are retrived from the topdeckcodes function in hstone package.
(You must first run hstopdeckcodes function in hstone package to use this function)

Usage

1
hscardused(id, secret, used = "")

Arguments

id

A client Id you obtained from Blizzard api.

secret

A client Secret you obtained from Blizzard api.

used

Put either "high", "medium", or "low" in order to retrieve cards with high usage (4 and more times used), medium usage (2 to 3), and low usage (1 or less).
Leave this blank to retrieve all the cards without such criteria.

Value

The data frame with cards and how many times they are used in top tier decks.

Examples

1
2
hscardused(id = Sys.getenv("id"), secret = Sys.getenv("secret"), used = "high")
hscardused(id = Sys.getenv("id"), secret = Sys.getenv("secret"))

nhk2120/hstone documentation built on Dec. 12, 2019, 12:47 a.m.